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
Adds bindings for spoke users on hub #111
Adds bindings for spoke users on hub #111
Conversation
b63a49c
to
bef2033
Compare
bef2033
to
81a074d
Compare
|
LGTM, tested it out and it's working |
81a074d
to
67c463d
Compare
67c463d
to
5f7c5c3
Compare
5f7c5c3
to
2282079
Compare
|
@GowthamShanmugam: changing LGTM is restricted to collaborators 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. |
|
@vbnrh: This pull request references Bugzilla bug 2082078, which is valid. No validations were run on this bugRequesting review from QA contact: 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. |
|
@openshift-ci[bot]: GitHub didn't allow me to request PR reviews from the following users: keesturam. Note that only red-hat-storage members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
|
@vbnrh: No Bugzilla bug is referenced in the title of this pull request. 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. |
2282079
to
57b6383
Compare
controllers/mirrorpeer_controller.go
Outdated
| @@ -179,6 +183,12 @@ func (r *MirrorPeerReconciler) Reconcile(ctx context.Context, req ctrl.Request) | |||
| return ctrl.Result{}, err | |||
| } | |||
|
|
|||
| err = r.createClusterRoleBindingsForSpoke(ctx, mirrorPeer) | |||
| if err != nil { | |||
| logger.Error(err, "Failed to create role bindings for spoke") | |||
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.
| logger.Error(err, "Failed to create role bindings for spoke") | |
| logger.Error(err, "Failed to create cluster role bindings for spoke") |
This commit adds changes that binds the hub's clusterrole to generated spoke users. This is done to fix a bug where the tokenagent on the spokeclusters are unable to watch and make channges to mirrorpeer on the hub Signed-off-by: Vineet Badrinath <vineetbnath@gmail.com>
57b6383
to
0f8a4e2
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: GowthamShanmugam, umangachapagain, vbnrh 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 |
|
/cherry-pick release-4.10 |
|
@vbnrh: once the present PR merges, I will cherry-pick it on top of release-4.10 in a new PR and assign it to you. 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. |
|
/test integration-test |
|
@vbnrh: #111 failed to apply on top of branch "release-4.10": 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. |
|
@agarwal-mudit: new pull request could not be created: failed to create pull request against red-hat-storage/odf-multicluster-orchestrator#release-4.11 from head openshift-cherrypick-robot:cherry-pick-111-to-release-4.11: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"No commits between red-hat-storage:release-4.11 and openshift-cherrypick-robot:cherry-pick-111-to-release-4.11"}],"documentation_url":"https://docs.github.com/rest/reference/pulls#create-a-pull-request"} 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. |
This commit adds changes that binds the hub's clusterrole to generated
spoke users.
This is done to fix a bug where the tokenagent on the spokeclusters are
unable to watch and make channges to mirrorpeer on the hub
Signed-off-by: Vineet Badrinath vineetbnath@gmail.com