-
Notifications
You must be signed in to change notification settings - Fork 202
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
refactor namespace reconciliation to ensure openshift rbac requisites #2468
refactor namespace reconciliation to ensure openshift rbac requisites #2468
Conversation
Hi @anithapriyanatarajan. 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. |
/ok-to-test |
836f97a
to
397b47a
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.
Naive question (on this and in some other places in general), shouldn't we use PATCH
more often ? It would reduce the possibility to get "this object ways already update" type of failures.
397b47a
to
1007e40
Compare
The following is the coverage report on the affected files.
|
1007e40
to
e2b0b7e
Compare
The following is the coverage report on the affected files.
|
@anithapriyanatarajan have you tested upgrade scenario with this PR ?
|
@jkhelil - Thanks for the detailed comments. The following steps were performed to test the upgrade.
Though the refactored code is working fine for upgrade, the improvement in duration is very minimal, hope that is expected. For all the cases observed CPU and memory metrics from Openshift Metrics dashboard |
@anithapriyanatarajan
|
|
e2b0b7e
to
5f86862
Compare
The following is the coverage report on the affected files.
|
/test pull-tekton-operator-build-tests |
Removed the concurrency and mutex aspects from the PR. The resulting changes are just meant for refactoring for modularity and incorporate enhancements to bulk update clusterrolebinidng and utilising Patch instead of Update. Please review and share your views |
Thank you very much for the catch. This issue happens when there is a fresh install of the new version in which case Patch of exising tektonconfig is triggered to update labels. I had used a deprecated type 'StrategicMergePatchType' instead of 'MergePatchTpe' which has created the issue. Fixed this now. |
/test pull-tekton-operator-build-tests |
5f86862
to
505ae82
Compare
The following is the coverage report on the affected files.
|
505ae82
to
8f9a5a9
Compare
8f9a5a9
to
4e825de
Compare
The following is the coverage report on the affected files.
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jkhelil 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 |
/lgtm |
Changes
During upgrade of pipelines in OpenShift cluster there are additional rbac related reconciliation to be done across all namespaces in the cluster. Right now the namespace reconciliation happens one at a time in a for loop. This results in longer upgrade time. This PR improvises this by
Patch
in place ofUpdate
[Note: The original scope included concurrency which was later dropped since there was no significant impact in time taken to process the namespaces]
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