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 MakeAutoscalerDeployment(rev *v1alpha1.Revision, autoscalerImage string, replicaCount int32) *appsv1.Deployment
- func MakeAutoscalerService(rev *v1alpha1.Revision) *corev1.Service
- func MakeDeployment(rev *v1alpha1.Revision, loggingConfig *logging.Config, ...) *appsv1.Deployment
- func MakeFluentdConfigMap(rev *v1alpha1.Revision, observabilityConfig *config.Observability) *corev1.ConfigMap
- func MakeK8sService(rev *v1alpha1.Revision) *corev1.Service
- func MakeVPA(rev *v1alpha1.Revision) *vpa.VerticalPodAutoscaler
Constants ¶
View Source
const ( // TODO(mattmoor): Make this private once we remove revision_test.go UserContainerName = "user-container" // TODO(mattmoor): Make this private once we remove revision_test.go IstioOutboundIPRangeAnnotation = "traffic.sidecar.istio.io/includeOutboundIPRanges" // TODO(mattmoor): Make this private once we remove revision_test.go AutoscalerPort = 8080 ServicePort int32 = 80 AppLabelKey = "app" )
Variables ¶
View Source
var ProgressDeadlineSeconds int32 = 120
Functions ¶
func MakeAutoscalerDeployment ¶
func MakeAutoscalerDeployment(rev *v1alpha1.Revision, autoscalerImage string, replicaCount int32) *appsv1.Deployment
MakeAutoscalerDeployment creates the deployment of the autoscaler for a particular revision.
func MakeAutoscalerService ¶
MakeAutoscalerService returns a service for the autoscaler of the given revision.
func MakeDeployment ¶
func MakeDeployment(rev *v1alpha1.Revision, loggingConfig *logging.Config, networkConfig *config.Network, observabilityConfig *config.Observability, autoscalerConfig *autoscaler.Config, controllerConfig *config.Controller, replicaCount int32) *appsv1.Deployment
func MakeFluentdConfigMap ¶
func MakeK8sService ¶
MakeK8sService creates a Kubernetes Service that targets all pods with the same serving.RevisionLabelKey label. Traffic is routed to queue-proxy port.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.