Commit a373dde
authored
Fix RBAC in multicluster tool (#99)
# Summary
Our multicluster CLI tool didn't treat the "IsAlreadyExists" errors
properly so some roles and clusterrolebindings were not updated when
upgrading the operator.
## Proof of Work
You can see that
[clusterrolebindings](https://operator-e2e-artifacts.s3.amazonaws.com/logs/mongodb_kubernetes_e2e_multi_cluster_kind_e2e_meko_mck_upgrade_patch_3178929a901f7bf30090fae7f634043c07b0db65_681dd24a5a5bd00007b819da_25_05_09_10_00_43/0/kind-e2e-cluster-1_z_clusterrolebindings.txt)
now are applied to the new service account, and the operator doesn't
print any errors related to RBAC in the
[logs](https://operator-e2e-artifacts.s3.amazonaws.com/logs/mongodb_kubernetes_e2e_multi_cluster_kind_e2e_meko_mck_upgrade_patch_3178929a901f7bf30090fae7f634043c07b0db65_681dd24a5a5bd00007b819da_25_05_09_10_00_43/0/mongodb-kubernetes-operator-multi-cluster-767f89dd9-9wt9n-mongodb-kubernetes-operator-multi-cluster.log).
Here are the
[clusterrolebindings](https://operator-e2e-artifacts.s3.amazonaws.com/logs/mongodb_kubernetes_e2e_multi_cluster_kind_e2e_meko_mck_upgrade_patch_3178929a901f7bf30090fae7f634043c07b0db65_681dc1aba422640007a240db_25_05_09_08_49_49/4/kind-e2e-cluster-1_z_clusterrolebindings.txt)
and the operator
[logs](https://operator-e2e-artifacts.s3.amazonaws.com/logs/mongodb_kubernetes_e2e_multi_cluster_kind_e2e_meko_mck_upgrade_patch_3178929a901f7bf30090fae7f634043c07b0db65_681dc1aba422640007a240db_25_05_09_08_49_49/4/mongodb-kubernetes-operator-multi-cluster-9f66cc7bc-n877n-mongodb-kubernetes-operator-multi-cluster.log)
before.
## Checklist
- [ ] Have you linked a jira ticket and/or is the ticket in the title?
- [ ] Have you checked whether your jira ticket required DOCSP changes?
- [ ] Have you checked for release_note changes?1 parent fb38d83 commit a373dde
File tree
2 files changed
+21
-5
lines changed- public/tools/multicluster/pkg/common
- scripts/evergreen/e2e
2 files changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
579 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
580 | 586 | | |
581 | 587 | | |
582 | 588 | | |
| |||
594 | 600 | | |
595 | 601 | | |
596 | 602 | | |
597 | | - | |
| 603 | + | |
598 | 604 | | |
599 | 605 | | |
600 | 606 | | |
| |||
641 | 647 | | |
642 | 648 | | |
643 | 649 | | |
644 | | - | |
645 | | - | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
646 | 658 | | |
647 | 659 | | |
648 | 660 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
296 | 300 | | |
297 | 301 | | |
298 | 302 | | |
| |||
0 commit comments