config_v1

package
v0.4.1-beta3 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Host          string           `json:"host,omitempty"` // ingress host
	IP            string           `json:"ip,omitempty"`   // ip to bind on for k3s cluster
	Proxy         ProxyConfig      `json:"proxy,omitempty"`
	TLS           TLSConfig        `json:"tls,omitempty"`
	SMTP          SMTPConfig       `json:"smtp,omitempty"`
	RetentionDays RetentionConfig  `json:"retentionDays,omitempty"`
	Forwarding    ForwardingConfig `json:"forwarding,omitempty"`

	Autoscaling     *bool `json:"autoscaling,omitempty"`        // enable services autoscaling
	WekaNodesServed int   `json:"wekaNodesMonitored,omitempty"` // number of weka nodes to monitor, controls load preset

	HelmOverrides map[string]any `json:"helmOverrides,omitempty"` // additional overrides for helm chart
	K3SArgs       []string       `json:"k3sArgs,omitempty"`       // k3s args overrides during install
}

Configuration flat options for the chart, pointers are used to distinguish between empty and unset values

func (Configuration) Validate

func (c Configuration) Validate() error

type ForwardingConfig

type ForwardingConfig struct {
	Enabled                   *bool  `json:"enabled,omitempty"`                   // forwarding enabled
	Url                       string `json:"url,omitempty"`                       // forwarding url override
	EnableEvents              bool   `json:"enableEvents,omitempty"`              // forwarding enable events
	EnableUsageReports        bool   `json:"enableUsageReports,omitempty"`        // forwarding enable usage reports
	EnableAnalytics           bool   `json:"enableAnalytics,omitempty"`           // forwarding enable analytics
	EnableDiagnostics         bool   `json:"enableDiagnostics,omitempty"`         // forwarding enable diagnostics
	EnableStats               bool   `json:"enableStats,omitempty"`               // forwarding enable stats
	EnableClusterRegistration bool   `json:"enableClusterRegistration,omitempty"` // forwarding enable cluster registration
}

type ProxyConfig

type ProxyConfig struct {
	URL string `json:"url,omitempty"`
}

type RetentionConfig

type RetentionConfig struct {
	Diagnostics int `json:"diagnostics,omitempty"` // diagnostics retention days
	Events      int `json:"events,omitempty"`      // events retention days
}

type SMTPConfig

type SMTPConfig struct {
	Host        string `json:"host,omitempty"`        // smtp server host
	Port        int    `json:"port,omitempty"`        // smtp server port
	User        string `json:"user,omitempty"`        // smtp server user
	Password    string `json:"password,omitempty"`    // smtp server password
	Insecure    *bool  `json:"insecure,omitempty"`    // smtp insecure connection
	Sender      string `json:"sender,omitempty"`      // smtp sender name
	SenderEmail string `json:"senderEmail,omitempty"` // smtp sender email
}

type TLSConfig

type TLSConfig struct {
	Cert string `json:"cert,omitempty"` // ingress tls cert
	Key  string `json:"key,omitempty"`  // ingress tls key
}

Jump to

Keyboard shortcuts

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