config

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetConfigVarResolver

func SetConfigVarResolver(ctx context.Context, client ctrlruntimeclient.Client, namespace string)

SetConfigVarResolver will instantiate the global ConfigVarResolver Instance

Types

type ConfigVarResolver

type ConfigVarResolver struct {
	// contains filtered or unexported fields
}
var (
	// CABundle is set globally once by main() function
	// This is shared globally since the enclosing values won't change during the controller lifecycle
	ConfigVarResolverInstance ConfigVarResolver
)

func GetConfigVarResolver

func GetConfigVarResolver() *ConfigVarResolver

func (*ConfigVarResolver) GetConfigVarBoolValue

func (cvr *ConfigVarResolver) GetConfigVarBoolValue(configVar types.ConfigVarBool) (bool, error)

func (*ConfigVarResolver) GetConfigVarBoolValueOrEnv

func (cvr *ConfigVarResolver) GetConfigVarBoolValueOrEnv(configVar types.ConfigVarBool, envVarName string) (bool, error)

func (*ConfigVarResolver) GetConfigVarStringValue

func (cvr *ConfigVarResolver) GetConfigVarStringValue(configVar types.ConfigVarString) (string, error)

func (*ConfigVarResolver) GetConfigVarStringValueOrEnv

func (cvr *ConfigVarResolver) GetConfigVarStringValueOrEnv(configVar types.ConfigVarString, envVarName string) (string, error)

GetConfigVarStringValueOrEnv tries to get the value from ConfigVarString, when it fails, it falls back to getting the value from an environment variable specified by envVarName parameter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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