Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSecretsClient ¶
func NewSecretsClient() (typedv1.SecretInterface, error)
NewSecretsClient creates a SecretsClient for working with Secrets in the pod namespace. A SecretsClient uses an underlying Kubernetes API client initialised with in-cluster config.
func ProviderFactory ¶
func ProviderFactory(options plugin_v1.ProviderOptions) (plugin_v1.Provider, error)
ProviderFactory constructs a Provider. The API client is configured from in-cluster environment variables and files.
Types ¶
type Provider ¶
type Provider struct { Name string SecretsClient typedv1.SecretInterface }
Provider provides data values from Kubernetes Secrets.
func (*Provider) GetValue ¶
GetValue obtains a value by id. Any secret which is stored in Kubernetes Secrets is recognized. The data type returned by Kubernetes Secrets is map[string][]byte. Therefore this provider needs to know which field to return from the map. The field to be returned is specified by appending '#fieldName' to the id argument.