package
1.2.0
Repository: https://github.com/fluxcd/helm-controller.git
Documentation: pkg.go.dev

# Functions

ConfigFromSecret returns the KubeConfig data from the provided key in the given Secret, or attempts to load the data from the default `value` and `value.yaml` keys.
NewInClusterMemoryRESTClientGetter returns a new MemoryRESTClientGetter that uses the in-cluster REST config.
NewMemoryRESTClientGetter returns a new MemoryRESTClientGetter.
SetImpersonationConfig configures the provided service account name if given, or the DefaultServiceAccountName as a fallback if set.
WithClientOptions sets the client options (e.g.
WithImpersonate sets the service account to impersonate.
WithNamespace sets the namespace to use for the client.
WithPersistent sets whether the client should persist the underlying client config, REST mapper, and discovery client.

# Constants

DefaultKubeConfigSecretKey is the default data key ConfigFromSecret looks at when no data key is provided.
DefaultKubeConfigSecretKeyExt is the default data key ConfigFromSecret looks at when no data key is provided, and DefaultKubeConfigSecretKey does not exist.

# Variables

DefaultServiceAccountName can be set at runtime to enable a fallback account name when no service account name is provided to SetImpersonationConfig.

# Structs

MemoryRESTClientGetter is a resource.RESTClientGetter that uses an in-memory REST config, REST mapper, and discovery client.

# Type aliases

Option is a function that configures an MemoryRESTClientGetter.