View Source Kubereq.Kubeconfig.ENV (kubereq v0.1.3)

Pluggable step that loads the Kubeconfig from a config file whose location is defined by an ENV variable. Uses Kubereq.Kubeconfig.File under the hood.

Examples

step Kubereq.Kubeconfig.ENV

By default, this step assumes the name of the variable to be KUBECONFIG. This can be customized through the :env_var option

step Kubereq.Kubeconfig.ENV, env_var: SPECIAL_KUBECONFIG

Options

  • env_var - (optional) The name of the environment variable. Defaults to KUBECONFIG
  • ! - (optional. And yes, that's a valid atom) Raise an exception if the env var not found. Defaults to false.