configuration

package
v1.0.43 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PlatformConfigurationName points to a configmap that maintain information about the installation.
	PlatformConfigurationName = "system.controller.configuration"

	PrometheusTemplate = "frisbee.system.telemetry.prometheus"

	GrafanaTemplate = "frisbee.system.telemetry.grafana"

	DataviewerTemplate = "frisbee.system.telemetry.dataviewer"
)

References are defined separately in order to facilitate the matching between Yaml configuration (of kubernetes) and Go code of the controller.

Variables

This section is empty.

Functions

func SetGlobal

func SetGlobal(conf Configuration)

Types

type Configuration

type Configuration struct {
	DeveloperMode bool `json:"developerMode"`

	Namespace string `json:"namespace"`

	DomainName string `json:"domainName"`

	IngressClassName string `json:"ingressClassName"`

	ControllerName string `json:"controllerName"`
}

Configuration is the programmatic equivalent of charts/platform/configuration.

var Global Configuration

func Get

func Get(ctx context.Context, cli client.Client, logger logr.Logger) (Configuration, error)

Get returns the system configuration.

func (Configuration) Validate added in v1.0.30

func (c Configuration) Validate() error

Jump to

Keyboard shortcuts

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