-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Feature request: a configuration file #384
Comments
This would make using CI much easier, rather than having a long command line full of flags. |
I have been playing around with this, since I agree a configuration file would be useful. My current local implementation is to generate the configuration file on-demand (kube-score mkconfig). The configuration file directives could be overridden at command line, preserving existing functionality/behavior. For example, one could still exclude a test using the --ignore-test flag without editing .kube-score.yml. At present, the configuration looks as such -- $ ./kube-score mkconfig object: CronJob object: Deployment object: HorizontalPodAutoscaler object: Ingress object: NetworkPolicy object: Pod object: PodDisruptionBudget object: Service object: StatefulSet object: all Is this in line with what you were envisioning as a user? |
Hi @kmarteaux - This is great news! I had assumed the syntax would be as simple as matching the cli flags. This would make it very easy to follow and reason about:
I do think the syntax that you have proposed feels like overkill, but either way, I think it would be more natural to replace Thanks |
Anthony, thanks for the feedback. That is why I asked, it felt like I was overthinking it. I will adjust accordingly. |
I agree with @day1118. It seems a pretty understandable approach. Thanks @kmarteaux ! |
It would be awesome to have the possibility to have a .kube-score.yml file in which we could configure whatever we need. I think at the time it would mostly be tests to ignore, but it may be interesting for the future.
This might serve as inspiration: https://docs.kubelinter.io/#/configuring-kubelinter
PD: Thanks for your work, kube-score is awesome!
The text was updated successfully, but these errors were encountered: