package
0.0.0-20180605162713-ea02baacea2f
Repository: https://github.com/imjasonh/elafros.git
Documentation: pkg.go.dev
# Functions
MakeElaAutoscalerDeployment creates the deployment of the autoscaler for a particular revision.
MakeElaAutoscalerService returns a service for the autoscaler of the given revision.
MakeElaDeployment creates a deployment.
MakeElaPodSpec creates a pod spec.
MakeElaQueueContainer creates the container spec for queue sidecar.
MakeElaResourceAnnotations creates the annotations we will apply to child resource of the given revision.
MakeElaResourceLabels constructs the labels we will apply to K8s resources.
MakeElaResourceSelector constructs the Selector we will apply to K8s resources.
MakeFluentdConfigMap creates a ConfigMap that gets mounted for fluentd container on the pod.
MakeRevisionK8sService creates a Service that targets all pods with the same serving.RevisionLabelKey label.
NewController initializes the controller and is called by the generated code Registers eventhandlers to enqueue events config - client configuration for talking to the apiserver si - informer factory shared across all controllers for listening to events and indexing resource properties queue - message queue for handling new events.
# Constants
AutoscalerNamespace needs to match the service account, which needs to be a single, known namespace.
# Structs
Controller implements the controller for Revision resources.
ControllerConfig includes the configurations for the controller.