-
Notifications
You must be signed in to change notification settings - Fork 196
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
fix: prevent upgrade failures caused by deleting resources #2121
fix: prevent upgrade failures caused by deleting resources #2121
Conversation
Hi @l-qing. Thanks for your PR. I'm waiting for a tektoncd 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/test-infra repository. |
c2f97dd
to
be865eb
Compare
/ok-to-test |
The following is the coverage report on the affected files.
|
be865eb
to
552172b
Compare
The following is the coverage report on the affected files.
|
552172b
to
0b45753
Compare
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.
cc @piyush-garg
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jkandasa 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 your contribution to tekon operator @l-qing 🎉 |
When installing resources in TektonInstallerSet , if the original resource is in the process of being deleted, it is necessary to wait for the deletion to complete before proceeding with the installation. Otherwise, it may appear that the TektonInstallerSets have been installed successfully, but in the end, there may be missing resources.
0b45753
to
ca18750
Compare
The following is the coverage report on the affected files.
|
/lgtm Thanks for the PR 🎉 |
/retest-required |
When installing resources in TektonInstallerSet, if the original resource is in the process of being deleted, it is necessary to wait for the deletion to complete before proceeding with the installation. Otherwise, it may appear that the TektonInstallerSets have been installed successfully, but in the end, there may be missing resources.
In my scenario, when upgrading the pipeline, since the old RoleBinding
tekton-pipelines-webhook
was still being deleted, the new tektoninstallersets thought the resource already existed with no hash change, so no action was taken. As a result, when the Pod tekton-pipelines-webhook started up, it found that it did not have permissions for certain resourcesconfig-logging
, leading to startup failure. Its failure directly caused some configmapsconfig-registry-cert
to not be created due to the presence of the validatingwebhookconfigurations named config.webhook.pipeline.tekton.dev. Ultimately, this led to the entire pipeline upgrade failing. Only by reconstructing the instance could recovery be possible.Changes
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make test lint
before submitting a PRSee the contribution guide for more details.
Release Notes