Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Set ¶
func Set(conf RpaasConfig)
Types ¶
type ClusterConfig ¶
type ClusterConfig struct { Name string `json:"name"` Default bool `json:"default"` Address string `json:"address"` Token string `json:"token"` TokenFile string `json:"tokenFile"` CA string `json:"ca"` AuthProvider *clientcmdapi.AuthProviderConfig `json:"authProvider"` }
type RpaasConfig ¶
type RpaasConfig struct { WebSocketAllowedOrigins []string `json:"websocket-allowed-origins"` Clusters []ClusterConfig `json:"clusters"` ConfigDenyPatterns []regexp.Regexp `json:"config-deny-patterns"` ServiceName string `json:"service-name"` APIUsername string `json:"api-username"` APIPassword string `json:"api-password"` TLSCertificate string `json:"tls-certificate"` TLSKey string `json:"tls-key"` DefaultAffinity *corev1.Affinity `json:"default-affinity"` TeamAffinity map[string]corev1.Affinity `json:"team-affinity"` SyncInterval time.Duration `json:"sync-interval"` DashboardTemplate string `json:"dashboard-template"` DefaultCertManagerIssuer string `json:"default-cert-manager-issuer"` LoadBalancerNameLabelKey string `json:"loadbalancer-name-label-key"` WebSocketHandshakeTimeout time.Duration `json:"websocket-handshake-timeout"` WebSocketReadBufferSize int `json:"websocket-read-buffer-size"` WebSocketWriteBufferSize int `json:"websocket-write-buffer-size"` WebSocketPingInterval time.Duration `json:"websocket-ping-interval"` WebSocketMaxIdleTime time.Duration `json:"websocket-max-idle-time"` WebSocketWriteWait time.Duration `json:"websocket-write-wait"` SuppressPrivateKeyOnCertificatesList bool `json:"suppress-private-key-on-certificates-list"` MultiCluster bool `json:"multi-cluster"` NamespacedInstances bool `json:"namespaced-instances"` EnableCertManager bool `json:"enable-cert-manager"` NewInstanceReplicas int `json:"new-instance-replicas"` ForbiddenAnnotationsPrefixes []string `json:"forbidden-annotations-prefixes"` }
func Get ¶
func Get() RpaasConfig
Click to show internal directories.
Click to hide internal directories.