-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
🌱 (ci): Add GH action to validate generated helm charts for tutorials #4472
base: master
Are you sure you want to change the base?
🌱 (ci): Add GH action to validate generated helm charts for tutorials #4472
Conversation
Welcome @akagami-harsh! |
Hi @akagami-harsh. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Makefile
Outdated
(cd testdata/project-v4-with-plugins && ../../bin/kubebuilder edit --plugins=helm/v1-alpha) | ||
(cd docs/book/src/getting-started/testdata/project && ../../../../../../bin/kubebuilder edit --plugins=helm/v1-alpha) | ||
(cd docs/book/src/cronjob-tutorial/testdata/project && ../../../../../../bin/kubebuilder edit --plugins=helm/v1-alpha) | ||
(cd docs/book/src/multiversion-tutorial/testdata/project && ../../../../../../bin/kubebuilder edit --plugins=helm/v1-alpha) |
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.
👍
|
||
cmd = exec.Command("make", "generate-charts") | ||
_, err = sp.ctx.Run(cmd) | ||
hackutils.CheckError("Failed to run make chart for cronjob tutorial", err) |
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.
The changes here are perfect 👍
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.
I think this will not work
generate-charts
command only exists in root Makefile, not in docs samples Makefile
Would need to do something like in testdata?
kubebuilder/test/testdata/generate.sh
Line 114 in 458615a
$kb edit --plugins=helm.kubebuilder.io/v1-alpha |
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.
Yep we need to call here the plugin.
Good catcher @mateusoliveira43 🥇
Could you please fix it @akagami-harsh ?
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 @camilamacedo86, I’ve moved the plugin call to generate.sh
. It should work now—could you please trigger the CI
18fcd64
to
28d7925
Compare
28d7925
to
c451ce3
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akagami-harsh, camilamacedo86 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@akagami-harsh: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
HI @akagami-harsh You need to run make generate so that all under test data and docs samples will be generated within /lgtm /approve cancel |
New changes are detected. LGTM label has been removed. |
1cc2116
to
c451ce3
Compare
7cdd469
to
12c4683
Compare
Signed-off-by: Your Name <[email protected]> generate charts for samples under docs Signed-off-by: Your Name <[email protected]> call chart Signed-off-by: Your Name <[email protected]> fix Signed-off-by: Your Name <[email protected]> generate charts Signed-off-by: Your Name <[email protected]> fix Signed-off-by: Your Name <[email protected]> fix Signed-off-by: Your Name <[email protected]> fix Signed-off-by: Your Name <[email protected]> fix Signed-off-by: Your Name <[email protected]>
12c4683
to
38a8f3c
Compare
@@ -89,7 +89,7 @@ generate-docs: ## Update/generate the docs | |||
./hack/docs/generate.sh | |||
|
|||
.PHONY: generate-charts | |||
generate-charts: build ## Re-generate the helm chart testdata only | |||
generate-charts: build ## Re-generate the helm chart testdata and docs samples | |||
rm -rf testdata/project-v4-with-plugins/dist/chart | |||
(cd testdata/project-v4-with-plugins && ../../bin/kubebuilder edit --plugins=helm/v1-alpha) |
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.
We are not re-generating the charts for docs here, right?
We need to do that because when we are developing the helm-chart plugin, and we want to test the changes, we just run make generate-charts
and check things out without the need to re-scaffold all.
Fixes Use the plugin to create a Helm Chart for Tutorials and Validate with them with GitHub action in the CI #4453
added a gh action to validate generated helm charts under
docs/book/
modified Makefile to generate charts for tutorials
ran
make generate-charts
to generate charts fordocs/book/src/cronjob-tutorial/testdata/project
docs/book/src/getting-started/testdata/project
docs/book/src/multiversion-tutorial/testdata/project