config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: UPL-1.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestHelmConfigDir string

TestHelmConfigDir is needed for unit tests

Functions

func GetHelmChartsDir added in v0.15.0

func GetHelmChartsDir() string

GetHelmChartsDir returns the helm charts dir

func GetHelmConfigDir added in v0.15.0

func GetHelmConfigDir() string

GetHelmConfigDir returns the helm config dir

func GetHelmOverridesDir added in v0.15.0

func GetHelmOverridesDir() string

GetHelmOverridesDir returns the helm overrides dir

func GetHelmVzChartsDir added in v0.15.0

func GetHelmVzChartsDir() string

GetHelmVzChartsDir returns the Verrazzano helm charts dir

func GetInstallDir added in v0.15.0

func GetInstallDir() string

GetInstallDir returns the install dir

func GetPlatformDir added in v0.15.0

func GetPlatformDir() string

GetPlatformDir returns the platform dir

func GetThirdPartyDir added in v0.15.0

func GetThirdPartyDir() string

GetThirdPartyDir returns the thirdparty dir

func Set

func Set(config OperatorConfig)

Set saves the operator config. This should only be called at operator startup and during unit tests

Types

type OperatorConfig

type OperatorConfig struct {

	// The CertDir directory containing tls.crt and tls.key
	CertDir string

	// InitWebhooks enables initialzation of webhooks for the operator
	InitWebhooks bool

	// MetricsAddr is the address the metric endpoint binds to
	MetricsAddr string

	// LeaderElectionEnabled  enables/disables ensuring that there is only one active controller manager
	LeaderElectionEnabled bool

	// VersionCheckEnabled enables/disables version checking for upgrade.
	VersionCheckEnabled bool

	// WebhooksEnabled enables/disables Webhooks for the operator
	WebhooksEnabled bool

	// WebhookValidationEnabled enables/disables webhook validation without removing the webhook itself
	WebhookValidationEnabled bool

	// VerrazzanoRootDir is the root verrazzano directory in the image
	VerrazzanoRootDir string
}

OperatorConfig specfies the Verrazzano Platform Operator Config

func Get

func Get() OperatorConfig

Get returns the singleton instance of the operator config

Jump to

Keyboard shortcuts

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