Documentation ¶
Overview ¶
Package "pkg/config" contaais the public API defaults and settings that may be reused across control plane projects.
Index ¶
Constants ¶
View Source
const ( // DefaultControllerName is a unique identifier which indicates this operator's name. DefaultControllerName = "stunner.l7mp.io/gateway-operator" // DefaultDataplaneName is the name of the default Dataplane to use when no dataplane is specified explicitly. DefaultDataplaneName = "default" // DefaultDataplaneMode is the default dataplane" mode. DefaultDataplaneMode = "legacy" // OwnedByLabelKey is the name of the label that is used to mark resources (Services, // ConfigMaps, and Deployments) dynamically created and maintained by the operator. Note // that the Deployments and Services created by the operator will have both the AppLabelKey // and the OwnedByLabelKey labels set. OwnedByLabelKey = "stunner.l7mp.io/owned-by" // OwnedByLabelValue is the value of OwnedByLabelKey to indicate that a resource is // maintained by the operator. OwnedByLabelValue = "stunner" // RelatedGatewayKey is the name of the label that is used to tie a LoadBalancer service, a // STUNner dataplane ConfigMap, or a stunnerd Deployment (in managed mode) to a // Gateway. The value is either a singular pair of a namespace and name when of the related // Gateway (in the form "namespace/name", mostly used for associating a LB Service to a // Gateway) or GatewayConfig (used for ConfigMaps storing STUNner dataplane configs in // legacy mode, which usually belong to multiple Gateways). RelatedGatewayKey = "stunner.l7mp.io/related-gateway-name" // RelatedGatewayNamespace is the name of the label that is used to tie a LoadBalancer // service, a STUNner dataplane ConfigMap, or a stunnerd Deployment (in managed mode) to a // Gateway. The value is the namespace of the related Gateway. RelatedGatewayNamespace = "stunner.l7mp.io/related-gateway-namespace" // AppLabelKey defines the label used to mark the pods of the stunnerd Deployment. AppLabelKey = "app" // AppLabelValue defines the label value used to mark the pods of the stunnerd deployment. AppLabelValue = "stunner" // ServiceTypeAnnotationKey defines the type of the service created to expose each Gateway // to external clients. Can be either `None` (no service created), `ClusterIP`, `NodePort`, // `ExternalName` or `LoadBalancer`. Default is `LoadBalancer`. ServiceTypeAnnotationKey = "stunner.l7mp.io/service-type" // DefaultServiceType defines the default type of services created to expose each Gateway // to external clients. DefaultServiceType = corev1.ServiceTypeLoadBalancer // DefaultConfigMapName names a ConfigMap by the operator to render the stunnerd // config file. DefaultConfigMapName = "stunnerd-config" // DefaultStunnerdInstanceName specifies the name of the stunnerd instance managed by the // operator. DefaultStunnerdInstanceName = "stunner-daemon" // DefaultStunnerdConfigfileName defines the file name under which the generated configfile // will appear in the filesystem of the stunnerd pods. This is also the key on the // ConfigMap that maintains the stunnerd config. DefaultStunnerdConfigfileName = "stunnerd.conf" // DefaultEnableEndpointDiscovery enables EDS for finding the UDP-route backend endpoints. DefaultEnableEndpointDiscovery = true // DefaultEnableRelayToClusterIP allows clients to create transport relay connections to the // ClusterIP of a service. DefaultEnableRelayToClusterIP = true // DefaultHealthCheckEndpoint is the default URI at which health-check requests are served. DefaultHealthCheckEndpoint = "http://0.0.0.0:8086" // DefaultConfigDiscoveryAddress is the default URI at which config discovery requests are served. DefaultConfigDiscoveryAddress = "0.0.0.0:13478" // DefaultConfigDiscoveryEndpoint is the API endpoint served by the config discovery // service. The config watcher is avaialble at `<DefaultConfigDiscoveryEndpoint>/watch`. DefaultConfigDiscoveryEndpoint = "/api/v1/config" // DefaultThrottleTimeout is the default time interval to wait between subsequent config // renders. DefaultThrottleTimeout = 250 * time.Millisecond // MixedProtocolAnnotationKey is the name(key) of the annotation that is used to // disable STUNner's blocking of mixed-protocol LBs for specific Gateways. // If false or any other string other than true the LB's proto defaults to the first // valid listener protocol in the Gateway spec. // If true all valid listener protocols will be added to the LB. MixedProtocolAnnotationKey = "stunner.l7mp.io/enable-mixed-protocol-lb" // MixedProtocolAnnotationValue is the expected value in order to enable mixed protocol LBs MixedProtocolAnnotationValue = "true" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.