-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[kube-prometheus-stack] allow extraManifests as map/list #5475
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
[kube-prometheus-stack] allow extraManifests as map/list #5475
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a extraManifests example here (list) that contains object and string elements?
and here a example with strings and objects, but extraManifests is an object:
That should cover all possibilities through CI.
Will do. In the sake of testing I will share the helm-unittests that I wrote for one of our internal charts. All of these tests pass. Hopefully that gives you some confidence. The only difference is this chart doesn't call it https://gist.github.com/TheRealNoob/ca7dee0e862a4e5526a115d54e863ec9 |
Signed-off-by: TheRealNoob <[email protected]>
Signed-off-by: TheRealNoob <[email protected]>
Signed-off-by: TheRealNoob <[email protected]>
Signed-off-by: TheRealNoob <[email protected]>
Signed-off-by: TheRealNoob <[email protected]>
92773ed
to
6784985
Compare
We have some tests on https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack/unittests, if you have them already you can add them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. But Gitleaks has some issues.
Optionally, add the unit tests, if you wish. @GMartinez-Sisti not sure, if they part of CI
charts/kube-prometheus-stack/ci/05-ingress-and-gateway-routes-values.yaml
Outdated
Show resolved
Hide resolved
They are disabled 😢 : https://github.com/prometheus-community/helm-charts/blob/main/.github/linters/ct.yaml#L4 Will send a PR to enable as I think there is great value on this. |
Signed-off-by: TheRealNoob <[email protected]>
I removed the linting tests and added the unittest since it's more comprehensive. This should also fix the gitleaks error. @GMartinez-Sisti unfortunately not all of the tests pass right now, but I at least made sure that extraObjects does. Here is the output so you can have a look. Also I changed the command slightly because it ran my test twice - find it at the top of the gist. The reason I placed the test at |
@jkroepke ready for merge? |
Signed-off-by: Jan-Otto Kröpke <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Thanks
What this PR does / why we need it
Allow
extraManifests
to be of type map or list. Useful for splitting the values across multiple files, such as one encrypted and another not.Which issue this PR fixes
None
Special notes for your reviewer
Checklist
[prometheus-couchdb-exporter]
)