config

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: UPL-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestHelmConfigDir string

TestHelmConfigDir is needed for unit tests

View Source
var TestProfilesDir string

TestProfilesDir is needed for unit tests

Functions

func GetDefaultBOMFilePath added in v1.1.0

func GetDefaultBOMFilePath() string

GetDefaultBOMFilePath returns BOM file path for the platform operator

func GetHelmAppOpChartsDir added in v1.1.0

func GetHelmAppOpChartsDir() string

GetHelmAppOpChartsDir returns the Verrazzano Application Operator helm charts dir

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 GetHelmKialiChartsDir added in v1.3.0

func GetHelmKialiChartsDir() string

GetHelmKialiChartsDir returns the Kiali helm charts dir

func GetHelmOamChartsDir added in v1.3.0

func GetHelmOamChartsDir() string

GetHelmOamChartsDir returns the oam-kubernetes-runtime helm charts dir

func GetHelmOverridesDir added in v0.15.0

func GetHelmOverridesDir() string

GetHelmOverridesDir returns the helm overrides dir

func GetHelmVMOChartsDir added in v1.3.0

func GetHelmVMOChartsDir() string

GetHelmVMOChartsDir returns the verrazzano-monitoring-operator helm charts dir

func GetInjectedSystemNamespaces added in v1.1.0

func GetInjectedSystemNamespaces() []string

func GetInstallDir added in v0.15.0

func GetInstallDir() string

GetInstallDir returns the install dir

func GetNoInjectionComponents added in v1.3.1

func GetNoInjectionComponents() []string

func GetPlatformDir added in v0.15.0

func GetPlatformDir() string

GetPlatformDir returns the platform dir

func GetProfile added in v1.1.0

func GetProfile(groupVersion schema.GroupVersion, profile string) string

GetProfile returns API profiles dir

func GetProfilesDir added in v1.1.0

func GetProfilesDir() string

GetProfilesDir returns the profiles dir

func GetThirdPartyDir added in v0.15.0

func GetThirdPartyDir() string

GetThirdPartyDir returns the thirdparty dir

func GetThirdPartyManifestsDir added in v1.1.0

func GetThirdPartyManifestsDir() string

func Set

func Set(config OperatorConfig)

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

func SetDefaultBomFilePath added in v1.1.0

func SetDefaultBomFilePath(p string)

SetDefaultBomFilePath Sets the global default location for the BOM file

Types

type OperatorConfig

type OperatorConfig struct {

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

	// InitWebhooks enables initialization 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

	// DryRun Run installs in a dry-run mode
	DryRun bool
}

OperatorConfig specifies 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