kustomize build .
command should be able to detect when an env variable is not defined in configmap
#5861
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Eschewed features
What would you like to have added?
If we have following file in a directory:
deployment.yaml
kustomization.yaml
And if we run the command
kustomize build .
within the directory, we will get the following output:When in fact, the kustomization.yaml file is missing a key
ENV_VAR_2
from the configmap definition. It would be great to have a feature in which kustomize build could check whether a environment variable is missing in the configmap definition.Why is this needed?
We have GitHub workflows that runs
kustomize build .
command for each PR and if the build fails then the workflow will fail. In the scenarios like above, we do not get any kustomize build failure. If we have such a feature, then it will help teams to identify missing environment variables from configmap.Can you accomplish the motivating task without this feature, and if so, how?
NA
What other solutions have you considered?
NA
Anything else we should know?
No response
Feature ownership
The text was updated successfully, but these errors were encountered: