-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Enable Bundles and Custom Tasks when feature gate is set to "alpha" #3908
Conversation
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
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 this - it looks really nice!
Just a couple of minor comments :)
/approve
docs/install.md
Outdated
Features currently in "alpha" are: | ||
|
||
- [Tekton Bundles](./taskruns.md#tekton-bundles) | ||
- Custom Tasks |
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.
Maybe add a link to ./runs.md
? Or https://github.com/tektoncd/community/blob/main/teps/0002-custom-tasks.md?
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.
Ahhhh this is exactly what I needed, thanks!
// test if none of the feature-flags in the given map match | ||
// what's in the feature-flags ConfigMap. It will fatally fail | ||
// the test if it cannot get the feature-flag configmap. | ||
func requireAnyGate(gates map[string]string) func(context.Context, *testing.T, *clients, string) { |
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.
❤️
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.
/meow
In response to this:
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/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afrittoli, vdemeester 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 |
Thanks for the reviews! Updated with a test for "stable" gate + bundles:"true" + custom-tasks: "true" & links from the install doc to Edit: stealthy ninja pushed an update to developer docs too so that |
The following is the coverage report on the affected files.
|
Also just manually verified that custom tasks tests do indeed run when either the gate is "alpha" or the feature's flag is "true". Here's what a skip looks like: === RUN TestCustomTask
init_test.go:132: Create namespace arendelle-5d8z7 to deploy to
init_test.go:148: Verify SA "default" is created in namespace "arendelle-5d8z7"
gate.go:32: No feature flag matching "enable-custom-tasks": "true" or "enable-api-fields": "alpha"
--- SKIP: TestCustomTask (1.04s) |
The following is the coverage report on the affected files.
|
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!
/lgtm
/test pull-tekton-pipeline-integration-tests |
1 similar comment
/test pull-tekton-pipeline-integration-tests |
…pha" Prior to this commit the Tekton Bundles and Custom Task features were only enabled when their individual flags were set to "true" in the feature-flags configmap. After this commit the two features are enabled if enable-api-fields is "alpha" or if their individual flags are set to "true". Note that it is _not_ possible to set the "alpha" feature gate but disable Bundles / Custom Tasks. These features are "alpha features" so they're always enabled regardless of their own feature flags if the gate is set to "alpha".
The following is the coverage report on the affected files.
|
The This is ready for a final lgtm (hopefully!) |
I tried running custom task which failed with an error:
But
I am troubleshooting this 🙃 |
oh, nevermind, my bad 😭 I didn't enable |
1 similar comment
oh, nevermind, my bad 😭 I didn't enable |
looks great, thanks @sbwsg |
Enabling the
|
Awesome, thanks for taking the time to review and try it out so thoroughly @pritidesai ! |
Changes
Prior to this commit the Tekton Bundles and Custom Task features were only enabled
when their individual flags were set to "true" in the feature-flags configmap.
After this commit the two features are also enabled when enable-api-fields is "alpha".
Note that it is not possible to set the "alpha" feature gate but disable Bundles / Custom Tasks. These features are "alpha features" so they're always enabled regardless of their own feature flags if the gate is set to "alpha".
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes