Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubeval config file to reuse custom settings #355

Open
lakhan-twilio opened this issue Oct 10, 2022 · 0 comments
Open

Kubeval config file to reuse custom settings #355

lakhan-twilio opened this issue Oct 10, 2022 · 0 comments

Comments

@lakhan-twilio
Copy link

lakhan-twilio commented Oct 10, 2022

Currently kubeval doesn't seem to have a config file via which we can configure its flag in a yaml or json file
Idea is to have .kubeval.config.yaml which can look like following

k8s_version: string
strict_check: string || bool
force_color: string || bool
skip_kinds:
  - pod
  - deployment
  - service

openshift_schema: string || bool
schemas:
  k8s: 
    location: string

Obviously it can be improved in terms of structuring and we can add more flags as a configuration in this yaml file.

And we can use this yaml file when triggering kubeval commands like kubeval deployment.yaml --config <path_to_yaml> and this --config flag can be used with any other flags such as -f or -d

I hope you got the intent and idea for making it happen 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant