config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgoCDSettings

type ArgoCDSettings struct {
	// LocalUsers holds users local to (stored on) the server.  This is to be distinguished from any potential alternative future login providers (LDAP, SAML, etc.) that might ever be added.
	LocalUsers map[string]string

	// ServerSignature holds the key used to generate JWT tokens.
	ServerSignature []byte

	// Certificate holds the certificate/private key for the ArgoCD API server.
	// If nil, will run insecure without TLS.
	Certificate *tls.Certificate
}

ArgoCDSettings holds in-memory runtime configuration options.

type ConfigManager

type ConfigManager struct {
	// contains filtered or unexported fields
}

ConfigManager holds config info for a new manager with which to access Kubernetes ConfigMaps.

func NewConfigManager

func NewConfigManager(clientset kubernetes.Interface, namespace string) *ConfigManager

NewConfigManager generates a new ConfigManager pointer and returns it

func (*ConfigManager) GetSettings

func (mgr *ConfigManager) GetSettings() (*ArgoCDSettings, error)

GetSettings retrieves settings from the ConfigManager.

func (*ConfigManager) SaveSettings

func (mgr *ConfigManager) SaveSettings(settings *ArgoCDSettings) error

SaveSettings serializes ArgoCD settings and upserts it into K8s secret/configmap

Jump to

Keyboard shortcuts

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