Documentation ¶
Overview ¶
Package resources holds simple functions for synthesizing child resources from a Revision resource and any relevant Revision controller configuration.
Index ¶
- Constants
- Variables
- func MakeDeployment(rev *v1alpha1.Revision, loggingConfig *logging.Config, ...) *appsv1.Deployment
- func MakeFluentdConfigMap(rev *v1alpha1.Revision, observabilityConfig *metrics.ObservabilityConfig) *corev1.ConfigMap
- func MakeImageCache(rev *v1alpha1.Revision) *caching.Image
- func MakeKPA(rev *v1alpha1.Revision) *kpa.PodAutoscaler
Constants ¶
View Source
const ( // UserContainerName is the name of the user-container in the PodSpec UserContainerName = "user-container" // FluentdContainerName is the name of the fluentd sidecar when enabled FluentdContainerName = "fluentd-proxy" // 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" )
Variables ¶
View Source
var ( // ProgressDeadlineSeconds is the time in seconds we wait for the deployment to // be ready before considering it failed. ProgressDeadlineSeconds = int32(120) )
Functions ¶
func MakeDeployment ¶
func MakeDeployment(rev *v1alpha1.Revision, loggingConfig *logging.Config, networkConfig *network.Config, observabilityConfig *metrics.ObservabilityConfig, autoscalerConfig *autoscaler.Config, deploymentConfig *deployment.Config) *appsv1.Deployment
MakeDeployment constructs a K8s Deployment resource from a revision.
func MakeFluentdConfigMap ¶
func MakeFluentdConfigMap(rev *v1alpha1.Revision, observabilityConfig *metrics.ObservabilityConfig) *corev1.ConfigMap
MakeFluentdConfigMap constructs a ConfigMap for fluentd.
func MakeImageCache ¶
MakeImageCache makes an caching.Image resources from a revision.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.