Package resources holds simple functions for synthesizing child resources from a Revision resource and any relevant Revision controller configuration.
Index ¶const ( // QueueContainerName is the name of the queue proxy side car QueueContainerName = "queue-proxy" // IstioOutboundIPRangeAnnotation defines the outbound ip ranges istio allows. // TODO(mattmoor): Make this private once we remove revision_test.go IstioOutboundIPRangeAnnotation = "traffic.sidecar.istio.io/includeOutboundIPRanges" // AppLabelKey is the label defining the application's name. AppLabelKey = "app" // ProgressDeadlineSeconds is the time in seconds we wait for the deployment to // be ready before considering it failed. ProgressDeadlineSeconds = int32(120) )Variables ¶
This section is empty.
Functions ¶ func BuildPodSpec ¶ added in v0.14.0func BuildPodSpec(rev *v1.Revision, containers []corev1.Container) *corev1.PodSpec
BuildPodSpec creates a PodSpec from the given revision and containers.
func BuildUserContainer ¶ added in v0.14.0func BuildUserContainer(rev *v1.Revision) *corev1.Container
BuildUserContainer makes a container from the Revision template.
func MakeDeployment ¶func MakeDeployment(rev *v1.Revision, loggingConfig *logging.Config, tracingConfig *tracingconfig.Config, networkConfig *network.Config, observabilityConfig *metrics.ObservabilityConfig, autoscalerConfig *autoscalerconfig.Config, deploymentConfig *deployment.Config) (*appsv1.Deployment, error)
MakeDeployment constructs a K8s Deployment resource from a revision.
func MakeImageCache ¶func MakeImageCache(rev *v1.Revision) *caching.Image
MakeImageCache makes an caching.Image resources from a revision.
func MakePA ¶ added in v0.8.0func MakePA(rev *v1.Revision) *av1alpha1.PodAutoscaler
MakePA makes a Knative Pod Autoscaler resource from a revision.
Types ¶This section is empty.
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