Documentation ¶
Overview ¶
Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which the Revision controller depends.
Index ¶
Constants ¶
const (
// ControllerConfigName is the name of config map for the controller.
ControllerConfigName = "config-controller"
)
const (
ObservabilityConfigName = "config-observability"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Controller *Controller Network *network.Config Observability *Observability Logging *pkglogging.Config Autoscaler *autoscaler.Config }
+k8s:deepcopy-gen=false
func FromContext ¶
type Controller ¶
type Controller struct { // QueueSidecarImage is the name of the image used for the queue sidecar // injected into the revision pod QueueSidecarImage string // Repositories for which tag to digest resolving should be skipped RegistriesSkippingTagResolving sets.String }
Controller includes the configurations for the controller.
func NewControllerConfigFromConfigMap ¶
func NewControllerConfigFromConfigMap(config *corev1.ConfigMap) (*Controller, error)
NewControllerConfigFromConfigMap creates a Controller from the supplied configMap
func NewControllerConfigFromMap ¶
func NewControllerConfigFromMap(configMap map[string]string) (*Controller, error)
NewControllerConfigFromMap creates a Controller from the supplied Map
func (*Controller) DeepCopy ¶
func (in *Controller) DeepCopy() *Controller
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Controller.
func (*Controller) DeepCopyInto ¶
func (in *Controller) DeepCopyInto(out *Controller)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Observability ¶
type Observability struct { // EnableVarLogCollection dedicates whether to set up a fluentd sidecar to // collect logs under /var/log/. EnableVarLogCollection bool // TODO(#818): Use the fluentd daemon set to collect /var/log. // FluentdSidecarImage is the name of the image used for the fluentd sidecar // injected into the revision pod. It is used only when enableVarLogCollection // is true. FluentdSidecarImage string // FluentdSidecarOutputConfig is the config for fluentd sidecar to specify // logging output destination. FluentdSidecarOutputConfig string // LoggingURLTemplate is a string containing the logging url template where // the variable REVISION_UID will be replaced with the created revision's UID. LoggingURLTemplate string // RequestLogTemplate is the go template to use to shape the request logs. RequestLogTemplate string // RequestMetricsBackend specifies the request metrics destination, e.g. Prometheus, // Stackdriver. RequestMetricsBackend string }
Observability contains the configuration defined in the observability ConfigMap.
func NewObservabilityFromConfigMap ¶
func NewObservabilityFromConfigMap(configMap *corev1.ConfigMap) (*Observability, error)
NewObservabilityFromConfigMap creates a Observability from the supplied ConfigMap
func (*Observability) DeepCopy ¶
func (in *Observability) DeepCopy() *Observability
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Observability.
func (*Observability) DeepCopyInto ¶
func (in *Observability) DeepCopyInto(out *Observability)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.