-
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
🌱 (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. |
18fcd64
to
28d7925
Compare
28d7925
to
c451ce3
Compare
/lgtm |
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 |
1cc2116
to
c451ce3
Compare
7cdd469
to
12c4683
Compare
@@ -137,6 +137,10 @@ func (sp *Sample) CodeGen() { | |||
cmd = exec.Command("make", "build-installer") | |||
_, err = sp.ctx.Run(cmd) | |||
hackutils.CheckError("Failed to run make build-installer for cronjob tutorial", err) | |||
|
|||
cmd = exec.Command("kubebuilder", "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.
These commands should use this function instead, no?
kubebuilder/test/e2e/utils/test_context.go
Lines 372 to 377 in d063d5a
// EditHelmPlugin is for running `kubebuilder edit --plugins=helm.kubebuilder.io/v1-alpha` | |
func (t *TestContext) EditHelmPlugin() error { | |
cmd := exec.Command(t.BinaryName, "edit", "--plugins=helm/v1-alpha") | |
_, err := t.Run(cmd) | |
return err | |
} |
err := sp.ctx.EditHelmPlugin()
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.
Yes we can use that function, I've updated the code to use that function.
10a1b60
to
1f2292f
Compare
It is all great !!! |
If it passes in the CI, you do not need to do the rebase; if not, then it will be required. /lgtm Thank you a lot for your amazing work 🥇 |
a50ed75
to
4b8cf1d
Compare
4b8cf1d
to
d906d37
Compare
8a65818
to
1f2292f
Compare
88b398e
to
69b2412
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akagami-harsh, camilamacedo86, mateusoliveira43 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 |
For we move forward we need to fix Could you please rebase with the master and run |
69b2412
to
5cca7b1
Compare
@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 @camilamacedo86, i have rebased with master ran make |
/lgtm /skip pull-kubebuilder-e2e-k8s-1-32-0 |
/skip pull-kubebuilder-e2e-k8s-1-32-0 |
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