In addition to arguments, Kluctl can be controlled via a set of environment variables.
Environment variables as arguments
All options/arguments accepted by kluctl can also be specified via environment variables. The name of the environment
variables always start with
KLUCTL_ and end with the option/argument in uppercase and dashes replaced with
underscores. As an example,
--dry-run can also be specified with the environment variable
If an argument needs to be specified multiple times through environment variables, indexed can be appended to the
names of the environment variables, e.g.
Additional environment variables
A few additional environment variables are supported which do not belong to an option/argument. These are:
KLUCTL_REGISTRY_<idx>_USERNAME, and so on. See OCI authentication for details.
KLUCTL_HELM_<idx>_USERNAME, and so on. See Helm private repositories for details.
KLUCTL_GIT_<idx>_USERNAME, and so on.
KLUCTL_SSH_DISABLE_STRICT_HOST_KEY_CHECKING. Disable ssh host key checking when accessing git repositories.