-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[bitnami/zookeeper] Make Zookeeper DefaultMode YAML 1.2 Compliant #21081
[bitnami/zookeeper] Make Zookeeper DefaultMode YAML 1.2 Compliant #21081
Conversation
2e3526d
to
ecbaaf9
Compare
Hi, thanks for opening this PR! I have some concerns about merging this PR because the Kubernetes API Reference for v1.28 is still using the YAML v1.1 format for octals:
Could this cause some backwards incompatibility in some old (or current) versions of the k8s tooling? helm, kubectl... Would this change generate confudion for users as the official k8s API spec is documented using the old format? If we apply this update, shouldn't we apply it globally to all the charts for homogeneity? What is the specific issue you are finding by sticking to YAML v1.1 format? |
ecbaaf9
to
439c293
Compare
I'm trying to parse the output of this Helm chart with Rust and the crate kube. This is needed for aixigo/PREvant#146 (code will be public in a few days). I came across dtolnay/serde-yaml#225 which showed Rust's serde library uses YAML 1.2 and thus my code failed because However, I noticed that the chart also makes use of decimals (see TLS secrets) and thus I applied the same trick and this addresses following questions:
I was thinking about doing so but then I read in the contribution guide to only raise PRs for single charts. I'm up to do it for all charts. Just tell me what is your preferred approach. |
With the YAML 1.2 spec octals must be prefixed with `0o` and not `0`. Parsers implementing the latest spec run into issues. See discussion here: dtolnay/serde-yaml#225 This commit makes the Zookeeper script mount compliant with YAML 1.2. Signed-off-by: Marc Schreiber <info@schrieveslaach.de>
5c83e16
to
f0d4b4f
Compare
In order to be still YAML 1.1 compliant and to be YAML 1.2 compliant, this commit changes the defaultMode to the decimal value 493. This seems to be done in other places as well (see modes of TLS secrets). Signed-off-by: Marc Schreiber <info@schrieveslaach.de>
f0d4b4f
to
1a026ec
Compare
@andresbono, after fighting the CI a bit I got it working and CI is green. Do you mind to have another look? |
That makes total sense 👍
Giving it a second thought, let's keep the rest of the charts as they are right now. We can reconsider moving to YAML 1.2 based on future user requests. But let's merge your changes so your use case is also covered. |
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 a lot. |
@andresbono, I did the same trick for Kafka (see #21086). Do you mind to check this out as well? |
…tnami#21081) * Make Zookeeper DefaultMode YAML 1.2 Compliant With the YAML 1.2 spec octals must be prefixed with `0o` and not `0`. Parsers implementing the latest spec run into issues. See discussion here: dtolnay/serde-yaml#225 This commit makes the Zookeeper script mount compliant with YAML 1.2. Signed-off-by: Marc Schreiber <info@schrieveslaach.de> * Use Decimal Notation for defaultMode In order to be still YAML 1.1 compliant and to be YAML 1.2 compliant, this commit changes the defaultMode to the decimal value 493. This seems to be done in other places as well (see modes of TLS secrets). Signed-off-by: Marc Schreiber <info@schrieveslaach.de> --------- Signed-off-by: Marc Schreiber <info@schrieveslaach.de>
Description of the change
With the YAML 1.2 spec octals must be prefixed with
0o
and not0
. Parsers implementing the latest spec run into issues.Benefits
This commit makes the Zookeeper script mount compliant with YAML 1.2.
Possible drawbacks
Applicable issues
None at the moment
Additional information
See background discussion here: dtolnay/serde-yaml#225
Checklist
Chart.yaml
according to semver. This is not necessary when the changes only affect README.md files.README.md
using readme-generator-for-helm