Documentation ¶
Index ¶
- Constants
- func GetSiteAnnotationsAndLabels(siteConfig *corev1.ConfigMap) (map[string]string, map[string]string)
- func ReadSiteConfig(siteConfig *corev1.ConfigMap, namespace string, defaultIngress string) (*types.SiteConfig, error)
- func UpdateForCollectorEnabled(configmap *corev1.ConfigMap)
- func UpdateLogging(config types.SiteConfigSpec, configmap *corev1.ConfigMap) bool
- func WriteSiteConfig(spec types.SiteConfigSpec, namespace string) (*corev1.ConfigMap, error)
Constants ¶
View Source
const ( // core options SiteConfigNameKey string = "name" SiteConfigRouterModeKey string = "router-mode" SiteConfigIngressKey string = "ingress" SiteConfigIngressAnnotationsKey string = "ingress-annotations" SiteConfigIngressHostKey string = "ingress-host" SiteConfigCreateNetworkPolicyKey string = "create-network-policy" SiteConfigRoutersKey string = "routers" SiteConfigRunAsUserKey string = "run-as-user" SiteConfigRunAsGroupKey string = "run-as-group" SiteConfigClusterPermissionsKey string = "cluster-permissions" // console options SiteConfigConsoleKey string = "console" SiteConfigConsoleAuthenticationKey string = "console-authentication" SiteConfigConsoleUserKey string = "console-user" SiteConfigConsolePasswordKey string = "console-password" SiteConfigConsoleIngressKey string = "console-ingress" SiteConfigRestAPIKey string = "rest-api" // flow collector options SiteConfigFlowCollectorKey string = "flow-collector" SiteConfigFlowCollectorRecordTtlKey string = "flow-collector-record-ttl" SiteConfigFlowCollectorCpuKey string = "flow-collector-cpu" SiteConfigFlowCollectorMemoryKey string = "flow-collector-memory" SiteConfigFlowCollectorCpuLimitKey string = "flow-collector-cpu-limit" SiteConfigFlowCollectorMemoryLimitKey string = "flow-collector-memory-limit" // prometheus server options SiteConfigPrometheusExternalServerKey string = "prometheus-external-server" SiteConfigPrometheusServerAuthenticationKey string = "prometheus-server-authentication" SiteConfigPrometheusServerUserKey string = "prometheus-server-user" SiteConfigPrometheusServerPasswordKey string = "prometheus-server-password" SiteConfigPrometheusServerCpuKey string = "prometheus-server-cpu" SiteConfigPrometheusServerMemoryKey string = "prometheus-server-memory" SiteConfigPrometheusServerCpuLimitKey string = "prometheus-server-cpu-limit" SiteConfigPrometheusServerMemoryLimitKey string = "prometheus-server-memory-limit" SiteConfigPrometheusServerPodAnnotationsKey string = "prometheus-server-pod-annotations" // router options SiteConfigRouterConsoleKey string = "router-console" SiteConfigRouterLoggingKey string = "router-logging" SiteConfigRouterCpuKey string = "router-cpu" SiteConfigRouterMemoryKey string = "router-memory" SiteConfigRouterCpuLimitKey string = "router-cpu-limit" SiteConfigRouterMemoryLimitKey string = "router-memory-limit" SiteConfigRouterAffinityKey string = "router-pod-affinity" SiteConfigRouterAntiAffinityKey string = "router-pod-antiaffinity" SiteConfigRouterNodeSelectorKey string = "router-node-selector" SiteConfigRouterMaxFrameSizeKey string = "xp-router-max-frame-size" SiteConfigRouterMaxSessionFramesKey string = "xp-router-max-session-frames" SiteConfigRouterDataConnectionCountKey string = "router-data-connection-count" SiteConfigRouterIngressHostKey string = "router-ingress-host" SiteConfigRouterServiceAnnotationsKey string = "router-service-annotations" SiteConfigRouterPodAnnotationsKey string = "router-pod-annotations" SiteConfigRouterLoadBalancerIp string = "router-load-balancer-ip" SiteConfigRouterDisableMutualTLS string = "router-disable-mutual-tls" // controller options SiteConfigServiceControllerKey string = "service-controller" SiteConfigServiceSyncKey string = "service-sync" SiteConfigServiceSyncSiteTtlKey string = "service-sync-site-ttl" SiteConfigControllerCpuKey string = "controller-cpu" SiteConfigControllerMemoryKey string = "controller-memory" SiteConfigControllerCpuLimitKey string = "controller-cpu-limit" SiteConfigControllerMemoryLimitKey string = "controller-memory-limit" SiteConfigControllerAffinityKey string = "controller-pod-affinity" SiteConfigControllerAntiAffinityKey string = "controller-pod-antiaffinity" SiteConfigControllerNodeSelectorKey string = "controller-node-selector" SiteConfigControllerIngressHostKey string = "controller-ingress-host" SiteConfigControllerServiceAnnotationsKey string = "controller-service-annotations" SiteConfigControllerPodAnnotationsKey string = "controller-pod-annotations" SiteConfigControllerLoadBalancerIp string = "controller-load-balancer-ip" // config-sync options SiteConfigConfigSyncCpuKey string = "config-sync-cpu" SiteConfigConfigSyncMemoryKey string = "config-sync-memory" SiteConfigConfigSyncCpuLimitKey string = "config-sync-cpu-limit" SiteConfigConfigSyncMemoryLimitKey string = "config-sync-memory-limit" SiteConfigEnableSkupperEventsKey string = "enable-skupper-events" //labels: ValidRfc1123Label = `^(` + ValidRfc1123LabelKey + `)+=(` + ValidRfc1123LabelValue + `)+(,(` + ValidRfc1123LabelKey + `)+=(` + ValidRfc1123LabelValue + `)+)*$` ValidRfc1123LabelKey = "[a-z0-9]([-._a-z0-9]*[a-z0-9])*" ValidRfc1123LabelValue = "[a-zA-Z0-9]([-._a-zA-Z0-9]*[a-zA-Z0-9])*" DefaultSkupperExtraLabels string = "" )
Variables ¶
This section is empty.
Functions ¶
func ReadSiteConfig ¶
func UpdateLogging ¶
func UpdateLogging(config types.SiteConfigSpec, configmap *corev1.ConfigMap) bool
func WriteSiteConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.