+k8s:deepcopy-gen=package +groupName=serving.knative.dev
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
const ( DefaultUserPort = 8080 UserPortName = "user-port" QueueAdminPortName string = "http-queueadm" AutoscalingQueueMetricsPortName = "http-autometric" UserQueueMetricsPortName = "http-usermetric" AnnotationParseErrorTypeMissing = "Missing" AnnotationParseErrorTypeInvalid = "Invalid" LabelParserErrorTypeMissing = "Missing" LabelParserErrorTypeInvalid = "Invalid" )View Source
const ( ReasonContainerMissing = "ContainerMissing" ReasonDeploying = "Deploying" ReasonNotOwned = "NotOwned" ReasonProgressDeadlineExceeded = "ProgressDeadlineExceeded" )
ConditionType represents a Service condition value
View Sourcevar FuzzerFuncs = fuzzer.MergeFuzzerFuncs( func(codecs serializer.CodecFactory) []interface{} { return []interface{}{ func(s *ConfigurationStatus, c fuzz.Continue) { c.FuzzNoCustom(s) s.Status.SetConditions(nil) s.InitializeConditions() pkgfuzzer.FuzzConditions(&s.Status, c) }, func(s *RevisionStatus, c fuzz.Continue) { c.FuzzNoCustom(s) s.Status.SetConditions(nil) s.InitializeConditions() pkgfuzzer.FuzzConditions(&s.Status, c) }, func(s *RouteStatus, c fuzz.Continue) { c.FuzzNoCustom(s) s.Status.SetConditions(nil) s.InitializeConditions() pkgfuzzer.FuzzConditions(&s.Status, c) }, func(s *ServiceStatus, c fuzz.Continue) { c.FuzzNoCustom(s) s.Status.SetConditions(nil) s.InitializeConditions() pkgfuzzer.FuzzConditions(&s.Status, c) }, func(ps *corev1.PodSpec, c fuzz.Continue) { c.FuzzNoCustom(ps) if len(ps.Containers) == 0 { ps.Containers = append(ps.Containers, corev1.Container{}) c.Fuzz(&ps.Containers[0]) } }, } }, )
FuzzerFuncs includes fuzzing funcs for knative.dev/serving v1 types
For other examples see https://github.com/kubernetes/apimachinery/blob/master/pkg/apis/meta/fuzzer/fuzzer.go
SchemeGroupVersion is group version used to register these objects.
ExitCodeReason constructs the status message from an exit code
HasDefaultConfigurationName checks to see whether the given context has been marked as having a default configurationName.
IsRevisionCondition returns true if the ConditionType is a revision condition type
IsRouteCondition returns true if the ConditionType is a route condition type
IsServiceCondition returns true if the ConditionType is a service condition type
IsUpgradeViaDefaulting checks whether we should be "defaulting" from v1alpha1 to the v1 subset.
Kind takes an unqualified kind and returns back a Group qualified GroupKind.
Resource takes an unqualified resource and returns a Group qualified GroupResource.
ResourceNotOwnedMessage constructs the status message if ownership on the resource is not right.
RevisionContainerExitingMessage constructs the status message if a container fails to come up.
RevisionContainerMissingMessage constructs the status message if a given image cannot be pulled correctly.
RevisionLastPinnedString returns a string representation of the specified time
WithDefaultConfigurationName notes on the context for nested validation that there is a default configuration name, which affects how an empty configurationName is validated.
WithUpgradeViaDefaulting notes on the context that we want defaulting to rewrite from v1alpha1 to v1.
Configuration represents the "floating HEAD" of a linear history of Revisions. Users create new Revisions by updating the Configuration's spec. The "latest created" revision's name is available under status, as is the "latest ready" revision's name. See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#configuration
ConvertFrom implements apis.Convertible
ConvertTo implements apis.Convertible
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
GetGroupVersionKind returns the GroupVersionKind.
SetDefaults implements apis.Defaultable
Validate makes sure that Configuration is properly configured.
ConfigurationList is a list of Configuration resources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationList.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
ConfigurationSpec holds the desired state of the Configuration (from the client).
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationSpec.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
GetTemplate returns a pointer to the relevant RevisionTemplateSpec field. It is never nil and should be exactly the specified template as guaranteed by validation.
SetDefaults implements apis.Defaultable
Validate implements apis.Validatable
ConfigurationStatus communicates the observed state of the Configuration (from the controller).
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationStatus.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
InitializeConditions sets the initial values to the conditions.
IsLatestReadyRevisionNameUpToDate returns true if the Configuration is ready and LatestCreateRevisionName is equal to LatestReadyRevisionName. Otherwise it returns false.
IsReady returns if the configuration is ready to serve the requested configuration.
Validate implements apis.Validatable
type ConfigurationStatusFields struct { LatestReadyRevisionName string `json:"latestReadyRevisionName,omitempty"` LatestCreatedRevisionName string `json:"latestCreatedRevisionName,omitempty"` }
ConfigurationStatusFields holds the fields of Configuration's status that are not generally shared. This is defined separately and inlined so that other types can readily consume these fields via duck typing.
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationStatusFields.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Validate implements apis.Validatable
Revision is an immutable snapshot of code and configuration. A revision references a container image. Revisions are created by updates to a Configuration.
See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision
ConvertFrom implements apis.Convertible
ConvertTo implements apis.Convertible
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Revision.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
GetGroupVersionKind returns the GroupVersionKind.
GetLastPinned returns the time the revision was last pinned
GetProtocol returns the app level network protocol.
IsReachable returns whether or not the revision can be reached by a route.
SetDefaults implements apis.Defaultable
SetLastPinned sets the revision's last pinned annotations to be the specified time
Validate ensures Revision is properly configured.
ValidateLabels function validates service labels
RevisionList is a list of Revision resources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RevisionList.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RevisionSpec struct { corev1.PodSpec `json:",inline"` ContainerConcurrency *int64 `json:"containerConcurrency,omitempty"` TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty"` }
RevisionSpec holds the desired state of the Revision (from the client).
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RevisionSpec.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
GetContainer returns a pointer to the relevant corev1.Container field. It is never nil and should be exactly the specified container as guaranteed by validation.
GetContainerConcurrency returns the container concurrency. If container concurrency is not set, the default value will be returned. We use the original default (0) here for backwards compatibility. Previous versions of Knative equated unspecified and zero, so to avoid changing the value used by Revisions with unspecified values when a different default is configured, we use the original default instead of the configured default to remain safe across upgrades.
SetDefaults implements apis.Defaultable
Validate implements apis.Validatable
type RevisionStatus struct { duckv1.Status `json:",inline"` ServiceName string `json:"serviceName,omitempty"` LogURL string `json:"logUrl,omitempty"` ImageDigest string `json:"imageDigest,omitempty"` }
RevisionStatus communicates the observed state of the Revision (from the controller).
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RevisionStatus.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
InitializeConditions sets the initial values to the conditions.
IsActivationRequired returns true if activation is required.
IsReady returns if the revision is ready to serve the requested configuration.
MarkActiveFalse marks Active status on revision as False
MarkActiveTrue marks Active status on revision as True
MarkActiveUnknown marks Active status on revision as Unknown
MarkContainerHealthyFalse marks ContainerHealthy status on revision as False
MarkContainerHealthyTrue marks ContainerHealthy status on revision as True
MarkContainerHealthyUnknown marks ContainerHealthy status on revision as Unknown
MarkResourcesAvailableFalse marks ResourcesAvailable status on revision as False
MarkResourcesAvailableTrue marks ResourcesAvailable status on revision as True
MarkResourcesAvailableUnknown marks ResourcesAvailable status on revision as Unknown
PropagateAutoscalerStatus propagates autoscaler's status to the revision's status.
PropagateDeploymentStatus takes the Deployment status and applies its values to the Revision status.
Validate implements apis.Validatable
RevisionTemplateSpec describes the data a revision should have when created from a template. Based on: https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RevisionTemplateSpec.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
SetDefaults implements apis.Defaultable
Validate implements apis.Validatable
VerifyNameChange checks that if a user brought their own name previously that it changes at the appropriate times.
Route is responsible for configuring ingress over a collection of Revisions. Some of the Revisions a Route distributes traffic over may be specified by referencing the Configuration responsible for creating them; in these cases the Route is additionally responsible for monitoring the Configuration for "latest ready revision" changes, and smoothly rolling out latest revisions. See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#route
ConvertFrom implements apis.Convertible
ConvertTo implements apis.Convertible
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
GetGroupVersionKind returns the GroupVersionKind.
SetDefaults implements apis.Defaultable
Validate makes sure that Route is properly configured.
RouteList is a list of Route resources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteList.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RouteSpec struct { Traffic []TrafficTarget `json:"traffic,omitempty"` }
RouteSpec holds the desired state of the Route (from the client).
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteSpec.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
SetDefaults implements apis.Defaultable
Validate implements apis.Validatable
RouteStatus communicates the observed state of the Route (from the controller).
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteStatus.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
InitializeConditions sets the initial values to the conditions.
IsReady returns if the route is ready to serve the requested configuration.
MarkIngressNotConfigured changes the IngressReady condition to be unknown to reflect that the Ingress does not yet have a Status
MarkServiceNotOwned changes the IngressReady status to be false with the reason being that there is a pre-existing placeholder service with the name we wanted to use.
PropagateIngressStatus update RouteConditionIngressReady condition in RouteStatus according to IngressStatus.
Validate implements apis.Validatable.
RouteStatusFields holds the fields of Route's status that are not generally shared. This is defined separately and inlined so that other types can readily consume these fields via duck typing.
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteStatusFields.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Validate implements apis.Validatable.
Service acts as a top-level container that manages a Route and Configuration which implement a network service. Service exists to provide a singular abstraction which can be access controlled, reasoned about, and which encapsulates software lifecycle decisions such as rollout policy and team resource ownership. Service acts only as an orchestrator of the underlying Routes and Configurations (much as a kubernetes Deployment orchestrates ReplicaSets), and its usage is optional but recommended.
The Service's controller will track the statuses of its owned Configuration and Route, reflecting their statuses and conditions as its own.
See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#service
ConvertFrom implements apis.Convertible
ConvertTo implements apis.Convertible
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
GetGroupVersionKind returns the GroupVersionKind.
SetDefaults implements apis.Defaultable
Validate makes sure that Service is properly configured.
ServiceList is a list of Service resources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceList.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
ServiceSpec represents the configuration for the Service object. A Service's specification is the union of the specifications for a Route and Configuration. The Service restricts what can be expressed in these fields, e.g. the Route must reference the provided Configuration; however, these limitations also enable friendlier defaulting, e.g. Route never needs a Configuration name, and may be defaulted to the appropriate "run latest" spec.
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSpec.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
SetDefaults implements apis.Defaultable
Validate implements apis.Validatable
ServiceStatus represents the Status stanza of the Service resource.
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceStatus.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
InitializeConditions sets the initial values to the conditions.
IsReady returns if the service is ready to serve the requested configuration.
MarkConfigurationNotOwned surfaces a failure via the ConfigurationsReady status noting that the Configuration with the name we want has already been created and we do not own it.
MarkConfigurationNotReconciled notes that the Configuration controller has not yet caught up to the desired changes we have specified.
MarkRevisionNameTaken notes that the Route has not been programmed because the revision name is taken by a conflicting revision definition.
MarkRouteNotOwned surfaces a failure via the RoutesReady status noting that the Route with the name we want has already been created and we do not own it.
MarkRouteNotReconciled notes that the Route controller has not yet caught up to the desired changes we have specified.
MarkRouteNotYetReady marks the service `RouteReady` condition to the `Unknown` state. See: #2430, for details.
PropagateConfigurationStatus takes the Configuration status and applies its values to the Service status.
PropagateRouteStatus propagates route's status to the service's status.
Validate implements apis.Validatable
type TrafficTarget struct { Tag string `json:"tag,omitempty"` RevisionName string `json:"revisionName,omitempty"` ConfigurationName string `json:"configurationName,omitempty"` LatestRevision *bool `json:"latestRevision,omitempty"` Percent *int64 `json:"percent,omitempty"` URL *apis.URL `json:"url,omitempty"` }
TrafficTarget holds a single entry of the routing table for a Route.
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficTarget.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
SetDefaults implements apis.Defaultable
Validate verifies that TrafficTarget is properly configured.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4