config

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

func Set

func Set(conf RpaasConfig)

Types

type ClusterConfig

type ClusterConfig struct {
	Name              string `json:"name"`
	Default           bool   `json:"default"`
	DisableValidation bool   `json:"disableValidation"`
	Address           string `json:"address"`
	Token             string `json:"token"`
	TokenFile         string `json:"tokenFile"`
	CA                string `json:"ca"`

	AuthProvider *clientcmdapi.AuthProviderConfig `json:"authProvider"`
	ExecProvider *clientcmdapi.ExecConfig         `json:"execProvider"`
}

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"`
	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"`
	DebugImage                   string                     `json:"debug-image"`
}

func Get

func Get() RpaasConfig

Jump to

Keyboard shortcuts

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