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
docs: check updates for the Helm reference #17613
Conversation
00e8d48
to
ea9bca2
Compare
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.
Thanks for fixing this!
Travis error is related, it happens while we try to regenerate the Helm reference after building Cilium, as part of the My understanding from the logs and error message is that the I'll update tomorrow, and probably disable the check if on arm64. I don't suppose it is worth building a second |
Cilium's documentation has a reference for the Helm values supported in its Charts. The reference is auto-generated, and is supposed to be updated each time the Charts are modified. To help keep the reference up-to-date, Cilium's CI should warn when developers forgot to regenerate and commit the document. Because the CI reported missing updates in the past, we thought that this was covered. But it turns out that the CI would only complain when it _fails_ to update the Helm reference - typically when some words need to be added to the spelling list. If the update goes fine, there is no check in place to validate that the regenerated file is identical to the one currently in the repository. This has led to multiple PRs missing the update for the Helm reference in the past. Address the issue by adding a check-helmvalues.sh script to validate that the current file is identical to the version in Git's HEAD. Run this script from the Makefile, as part of the "check" target. We also create a "update-helm-values" target, which looks cleaner to add as a prerequisite for "check" instead of passing the name of a .rst file. We also introduce a "FORCE" phony target to explicitly mark that we want the file regenerated each time. Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Update the reference for Helm values as a follow-up to a recent change in the Charts. Fixes: cilium#17509 Fixes: 105e1ab ("Allowed to set labels to ServiceMonitors") Signed-off-by: Quentin Monnet <quentin@isovalent.com>
ea9bca2
to
e40b676
Compare
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.
🎉
Travis build for arm64 went fine and it has the message about the skipped action 👍 |
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.
Thank you for fixing it! 🎉
Cilium's documentation has a reference for the Helm values supported in its Charts. The reference is auto-generated, and is supposed to be updated each time the Charts are modified. To help keep the reference up-to-date, Cilium's CI should warn when developers forgot to regenerate and commit the document.
Because the CI reported missing updates in the past, we thought that this was covered. But it turns out that the CI would only complain when it fails to update the Helm reference - typically when some words need to be added to the spelling list. If the update goes fine, there is no check in place to validate that the regenerated file is identical to the one currently in the repository. This has led to multiple PRs missing the update for the Helm reference in the past.
Address the issue by adding a check-helmvalues.sh script to validate that the current file is identical to the version in Git's HEAD. Run this script from the Makefile, as part of the
check
target.We also create a
update-helm-values
target, which looks cleaner to add as a prerequisite forcheck
instead of passing the name of a .rst file. We also introduce aFORCE
phony target to explicitly mark that we want the file regenerated each time.