kayobe/releasenotes/notes/validate-config-path-f26550903c1eb82a.yaml
Mark Goddard 8930a3c106 Prevent running from a different Kayobe configuration repository
There are various ways in which it is possible to operate Kayobe
incorrectly. One example is executing Kayobe from a different Kayobe
configuration repository than the one referred to by the
KAYOBE_CONFIG_PATH environment variable.

While this shouldn't necessarily cause any errors, it may lead to
unexpected results if the operator assumes they are operating against
the configuration in the current directory.

This change adds a validation step that checks for this case and fails
the command early if found.

Change-Id: I709884bbd7edebf1d409f39c11f293560e987506
2024-08-20 11:14:10 +01:00

8 lines
267 B
YAML

---
features:
- |
Adds validation to protect against executing Kayobe from within a different
Kayobe configuration repository than the one referred to by environment
variables (e.g. ``KAYOBE_CONFIG_PATH``) or CLI arguments (e.g.
``--config-path``).