Skip to content
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

TEP-0114: Stop serving v1beta1.CustomRun until we align on Retries #5736

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

jerop
Copy link
Member

@jerop jerop commented Nov 9, 2022

Changes

In this change, we stop serving the v1beta1.CustomRun CRD. This is because we are still discussing how to handle Retries in CustomRuns.

Related TEPs:

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs included if any changes are user facing
  • Has Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Nov 9, 2022
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 9, 2022
@jerop
Copy link
Member Author

jerop commented Nov 9, 2022

/kind cleanup

@tekton-robot tekton-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Nov 9, 2022
@jerop
Copy link
Member Author

jerop commented Nov 9, 2022

/test check-pr-has-kind-label

@tekton-robot
Copy link
Collaborator

@jerop: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test pull-tekton-pipeline-alpha-integration-tests
  • /test pull-tekton-pipeline-build-tests
  • /test pull-tekton-pipeline-integration-tests
  • /test tekton-pipeline-unit-tests

The following commands are available to trigger optional jobs:

  • /test pull-tekton-pipeline-go-coverage

Use /test all to run all jobs.

In response to this:

/test check-pr-has-kind-label

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.

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 9, 2022
@jerop
Copy link
Member Author

jerop commented Nov 9, 2022

/hold

need to fix the e2e tests

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 9, 2022
@jerop jerop added this to the Pipelines v0.42 milestone Nov 9, 2022
@abayer
Copy link
Contributor

abayer commented Nov 9, 2022

/retest

Those failures don't make much sense at first glance - seems worth a rerun.

@abayer
Copy link
Contributor

abayer commented Nov 9, 2022

@jerop I spun up a cluster locally with this change, and while I didn't get the error here, the controller had this in its logs:

W1109 18:36:14.763454       1 reflector.go:424] k8s.io/client-go@v0.25.3/tools/cache/reflector.go:169: failed to list *v1beta1.CustomRun: the server could not find the requested resource (get customruns.tekton.dev)
E1109 18:36:14.766094       1 reflector.go:140] k8s.io/client-go@v0.25.3/tools/cache/reflector.go:169: Failed to watch *v1beta1.CustomRun: failed to list *v1beta1.CustomRun: the server could not find the requested resource (get customruns.tekton.dev)

(and other issues in the webhook)

We've gotta remove the customrun.NewController() reference from cmd/controller/main.go, and v1beta1.SchemeGroupVersion.WithKind("CustomRun"): &v1beta1.CustomRun{} from cmd/webhook/main.go to turn off serving for v1beta1.CustomRun. Once I did that, things worked.

In this change, we stop serving the v1beta1.CustomRun CRD. This is
because we are still discussing how to handle Retries in CustomRuns.

Related TEPs:
- [TEP-0114: Custom Tasks Beta](https://github.com/tektoncd/community/blob/main/teps/0114-custom-tasks-beta.md)
- [TEP-0121: Retries](https://github.com/tektoncd/community/blob/main/teps/0121-refine-retries-for-taskruns-and-customruns.md)
@jerop jerop force-pushed the customrun-unserve branch from ce0ca5f to b191ca0 Compare November 9, 2022 19:32
@jerop
Copy link
Member Author

jerop commented Nov 9, 2022

/hold cancel

e2e test fixed, many thanks to @abayer!

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 9, 2022
@abayer
Copy link
Contributor

abayer commented Nov 9, 2022

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 9, 2022
@tekton-robot tekton-robot merged commit 61bf43f into tektoncd:main Nov 9, 2022
XinruZhang added a commit to XinruZhang/pipeline that referenced this pull request Nov 21, 2022
This commit reverts tektoncd#5736
because we've aligned on TEP-0121 about retries
@XinruZhang XinruZhang mentioned this pull request Nov 21, 2022
7 tasks
XinruZhang added a commit to XinruZhang/pipeline that referenced this pull request Nov 21, 2022
This commit reverts tektoncd#5736
because we've aligned on TEP-0121 about retries
tekton-robot pushed a commit that referenced this pull request Nov 21, 2022
This commit reverts #5736
because we've aligned on TEP-0121 about retries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants