Documentation ¶
Index ¶
Constants ¶
View Source
const ( ReclaimSpaceTimeoutKey = "reclaim-space-timeout" MaxConcurrentReconcilesKey = "max-concurrent-reconciles" )
Variables ¶
This section is empty.
Functions ¶
func GetErrorMessage ¶
GetErrorMessage returns the message from the error if it is a grpc error, else returns err.Error().
func IsUnimplementedError ¶ added in v0.6.0
IsUnimplementedError returns true if the error is Unimplemented error.
func NormalizeLeaseName ¶ added in v0.8.0
NormalizeLeaseName sanitizes the provided string so it can be used as name for a Lease object.
Taken from csi-lib-utils/leaderelection:sanitizeName()
func RemoveFromSlice ¶
RemoveFromSlice removes given string from given slice.
Types ¶
type Config ¶ added in v0.7.0
type Config struct { Namespace string ReclaimSpaceTimeout time.Duration MaxConcurrentReconciles int }
Config holds the configuration options that can be overrrided via a config file.
func NewConfig ¶ added in v0.7.0
func NewConfig() Config
NewConfig returns a new Config object with default values.
func (*Config) ReadConfigMap ¶ added in v0.7.0
ReadConfigFile fetches the config file and updates the config options with values read from the config map.
Click to show internal directories.
Click to hide internal directories.