-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update PodDisruptionBudget api version to get rid of warning message #494
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.
Hi @wangshu3000
Thanks for this contribution, everything looks good
We are using helm to install datadog into our cluster, but we use the helm template feature (part of a gitops setup). As such we are limited in what kind of capabilities the helm command will accurately report, as it does not query the live cluster. There is an easy way to add capabilities via a command line flag, but there is currently no way to remove capabilities from the default list, which is built-in to helm based on their current k8s library version. In this case with the latest helm 3 release, the policy/v1 capability seems baked in, and I see no way to disable the capability. As such the helm chart will render a policy/v1 PodDisruptionBudget, which isn't available in my 1.19 cluster. Would you be open to adding a more explicit flag to select the version of the disruptionbudget to be used in values.yaml ? |
Hi @rslinckx
We are using this option to validate our template against several kubernetes versions see: helm-charts/.github/kubeval.sh Line 23 in f1820b7
Please let us know if it solves your issue? Else we can discuss how we can provide an option in the values.yaml to for a specific version. |
We are actually running this with helm 3.7.2:
but it generates policy/v1 PodDisruptionBudget instead of the expected policy/v1beta1 as 1.19 does not have v1 yet. I think this is due to helm having some kind of hard-coded k8s versions list based on the version they build against? I see the CI here uses helm 3.6.3, maybe that's why it worked ? 3.7 updated their internal package to k8s 1.22, where in 3.6 they used k8s 1.21, although it seems v1 was marked as stable in 1.21 already, so not sure this is it... |
Hello again @rslinckx I have created this PR #498 to be more restrictive and fix the issue with |
Thanks a lot ! |
I am using EKS v1.21 and I still see the warning messages using the latest charts (datadog-2.28.13). Any information on why that would be the case? |
@mscanlon72 |
This is what I see when I run that command:
|
Setting |
What this PR does / why we need it:
Update PodDisruptionBudget api version from
policy/v1beta1
topolicy/v1
, to get rid of the warning message, the v1beta1 is deprecated in v1.21+, unavailable in v1.25+;Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
.github/helm-docs.sh
)CHANGELOG.md
has been updatedREADME.md