Open jeraldsm opened 1 year ago
It's a good idea! Although I'm afraid it's quite big as we need to parse yaml and then post process it and keep backward compatibility. Do you know any options that we can use? Maybe there's already a lib that can do that or language we can use (e.g. https://dhall-lang.org/ or https://cuelang.org/)
Description of the problem/feature request It would be nice to have an option in the kube-linter YAML configuration to accept environment variables.
Description of the existing behavior vs. expected behavior In order to define values specific to an application or an environment in the kube-linter YAML configuration file. I need to create separate kube-linter configuration file with the values specific for that use case.
If we can use the YAML configuration as a template with environment variables defined. It would be much easier to pass the variables to the configuration file
Example:
kube-linter lint --config .kube-linter.yaml --env APP=EXAMPLEAPP --env ENV=dev