Documentation ¶
Index ¶
- func SetConfigVarResolver(ctx context.Context, client ctrlruntimeclient.Client, namespace string)
- type ConfigVarResolver
- func (cvr *ConfigVarResolver) GetConfigVarBoolValue(configVar types.ConfigVarBool) (bool, error)
- func (cvr *ConfigVarResolver) GetConfigVarBoolValueOrEnv(configVar types.ConfigVarBool, envVarName string) (bool, error)
- func (cvr *ConfigVarResolver) GetConfigVarStringValue(configVar types.ConfigVarString) (string, error)
- func (cvr *ConfigVarResolver) GetConfigVarStringValueOrEnv(configVar types.ConfigVarString, envVarName string) (string, error)
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
Click to show internal directories.
Click to hide internal directories.