configuration

package
v1.0.29 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 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 = "system.telemetry.prometheus.template"

	GrafanaTemplate = "system.telemetry.grafana.template"

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

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 Discover

func Discover(ctx context.Context, cli client.Client, crList client.ObjectList, id string) error

Discover discovers a resource across different namespaces.

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, c client.Client, logger logr.Logger) (Configuration, error)

Get returns the system configuration

Jump to

Keyboard shortcuts

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