-
Notifications
You must be signed in to change notification settings - Fork 257
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededneeds designIndicates that the proposed enhancement needs more thought on designIndicates that the proposed enhancement needs more thought on design
Description
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
- name: required-label-env
template: required-label
params:
key: ENV
value: $ENV
scope:
objectKinds:
- DeploymentLike
remediation: Please set the label ENV in deployment objects
- name: required-label-app
template: required-label
params:
key: APP
value: $APP
scope:
objectKinds:
- DeploymentLike
remediation: Please set the label ENV in deployment objects
Example: kube-linter lint --config .kube-linter.yaml --env APP=EXAMPLEAPP --env ENV=dev
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededneeds designIndicates that the proposed enhancement needs more thought on designIndicates that the proposed enhancement needs more thought on design