site

package
v0.0.0-...-6b10bcf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 GetSiteAnnotationsAndLabels

func GetSiteAnnotationsAndLabels(siteConfig *corev1.ConfigMap) (map[string]string, map[string]string)

func ReadSiteConfig

func ReadSiteConfig(siteConfig *corev1.ConfigMap, namespace string, defaultIngress string) (*types.SiteConfig, error)

func UpdateForCollectorEnabled

func UpdateForCollectorEnabled(configmap *corev1.ConfigMap)

func UpdateLogging

func UpdateLogging(config types.SiteConfigSpec, configmap *corev1.ConfigMap) bool

func WriteSiteConfig

func WriteSiteConfig(spec types.SiteConfigSpec, namespace string) (*corev1.ConfigMap, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL