config

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestCatalogDir string

TestCatalogDir is needed for unit tests

View Source
var TestHelmConfigDir string

TestHelmConfigDir is needed for unit tests

View Source
var TestIntegrationChartsDis string

TestIntegrationChartsDis is needed for unit tests

View Source
var TestProfilesDir string

TestProfilesDir is needed for unit tests

View Source
var TestThirdPartyManifestDir string

TestThirdPartyManifestDir is needed for unit tests

Functions

func GetCatalogPath added in v1.7.0

func GetCatalogPath() string

GetCatalogPath gets the module catalog path

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 GetHelmClusterOpChartsDir added in v1.5.0

func GetHelmClusterOpChartsDir() string

GetHelmClusterOpChartsDir returns the Verrazzano Cluster Operator helm charts dir

func GetHelmConfigDir added in v0.15.0

func GetHelmConfigDir() string

GetHelmConfigDir returns the helm config dir

func GetHelmFluentOperatorChartsDir added in v1.7.0

func GetHelmFluentOperatorChartsDir() string

GetHelmFluentOperatorChartsDir returns the fluent operator helm charts 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 GetHelmOpenSearchOpChartsDir added in v1.7.0

func GetHelmOpenSearchOpChartsDir() string

func GetHelmOverridesDir added in v0.15.0

func GetHelmOverridesDir() string

GetHelmOverridesDir returns the helm overrides dir

func GetHelmPromOpChartsDir added in v1.5.0

func GetHelmPromOpChartsDir() string

GetHelmPromOpChartsDir returns the Prometheus Operator helm charts dir

func GetHelmVMOChartsDir added in v1.3.0

func GetHelmVMOChartsDir() string

GetHelmVMOChartsDir returns the verrazzano-monitoring-operator helm charts dir

func GetHelmVPOChartsDir added in v1.6.0

func GetHelmVPOChartsDir() string

GetHelmVPOChartsDir returns the verrazzano-platform-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 GetIntegrationChartsDir added in v1.7.0

func GetIntegrationChartsDir() string

GetIntegrationChartsDir returns the integration charts 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

	// 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

	// RunWebhooks Runs the webhooks instead of the operator instead of the operator reconciler
	RunWebhooks bool

	// RunWebhookInit Runs the webhook init path instead of the operator reconciler
	RunWebhookInit bool

	// ResourceRequirementsValidation toggles the suppression of resource requirement validation webhook
	// default-value: false, disabling the validation
	ResourceRequirementsValidation bool

	// CloudCredentialWatchEnabled enables/disables watching the cloud credentials for updates
	CloudCredentialWatchEnabled bool

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

	// VerrazzanoRootDir is the root Verrazzano directory in the image
	VerrazzanoRootDir string

	// HealthCheckPeriodSeconds period for health check background task in seconds; a value of 0 disables health checks
	HealthCheckPeriodSeconds int64

	// MySQLCheckPeriodSeconds period for MySQL check background task in seconds; a value of 0 disables MySQL checks
	MySQLCheckPeriodSeconds int64

	// NamespacePeriodSeconds period to watch Namespaces in seconds; a value of 0 disables Namespace watcher
	NamespacePeriodSeconds int64

	// MySQLRepairTimeoutSeconds is the amount of time the MySQL check background thread will allow to transpire between
	// detecting a possible condition to repair, and initiating the repair logic.
	MySQLRepairTimeoutSeconds int64

	// 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