-
Notifications
You must be signed in to change notification settings - Fork 99
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
Issue 3935/3940- enable remote cr #3934
Issue 3935/3940- enable remote cr #3934
Conversation
3784380
to
de917b6
Compare
kube_operator/api_objects.go
Outdated
return nil | ||
} | ||
glog.V(3).Infof(kwlog(fmt.Sprintf("checking if cluster role %s exists...", cr.Name()))) | ||
//if existingCr, _ := c.Client.RbacV1().ClusterRoles().Get(context.Background(), cr.Name(), metav1.GetOptions{}); existingCr != nil { |
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.
is the commented out code no longer needed?
kube_operator/api_objects.go
Outdated
glog.Errorf(kwlog(fmt.Sprintf("unable to delete role binding %s. Error: %v", crb.ClusterRolebindingObject.ObjectMeta.Name, err))) | ||
} | ||
} else { | ||
glog.V(3).Infof(kwlog(fmt.Sprintf("assign remain subjects %v to existing clusterrolebinding: %v", remainSubjects, existingCRB))) |
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.
change to "assign remaining..."
kube_operator/api_objects.go
Outdated
rb_sub := &sub | ||
if sub.Namespace != "" && sub.Namespace != namespace { | ||
rb_sub.Namespace = namespace | ||
/* |
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.
should this yaml be removed?
…ll to use remote image registry Signed-off-by: Le Zhang <zhangl@us.ibm.com>
de917b6
to
cf2f12e
Compare
Pull Request Template
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Additional Context (Please include any Screenshots/gifs if relevant)
...
Checklist: