-
Notifications
You must be signed in to change notification settings - Fork 4.7k
update addDeadClusterRole to add systemOnly annotation #15247
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
update addDeadClusterRole to add systemOnly annotation #15247
Conversation
c2fdaeb
to
15fd425
Compare
[test] |
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.
LGTM @benjaminapetersen can you verify the behavior in the web console?
ObjectMeta: metav1.ObjectMeta{ | ||
Name: name, | ||
Annotations: map[string]string{ | ||
// typical users should not see dead cluster roles |
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.
No one should ever see this really since they are just placeholders for reconciliation.
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.
Just update the comment or do we want to do anything else?
Looks like a flake:
[test] |
…annotation Roles that have been replaced by kube controller roles should receive the systemOnly annotation to ensure they are not visible to typical end users (such as those who would use the web console). - updates bootstrappolicy/dead addDeadClusterRole - updates bootstrappolicy/web_console_role_test TestSystemOnlyRoles - still skips controller roles (maintenance simplicity), but will throw an error if the annotation is missing
15fd425
to
66e9970
Compare
flake #15311 |
flake #10773 |
Evaluated for origin test up to 66e9970 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/3237/) (Base Commit: 20e72f7) (PR Branch Commit: 66e9970) |
[merge][severity:blocker] @jwforres really wanted this in 3.6 |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/3237/) (Base Commit: 20e72f7) (PR Branch Commit: 66e9970) (Image: devenv-rhel7_6448) |
Evaluated for origin merge up to 66e9970 |
picked into origin 3.6 in #15320 |
Fixes #15241 / web console issue 1858
Related to issue #14411, PR #14510
Roles that have been replaced by kube controller roles should receive
the systemOnly annotation to ensure they are not visible to typical
end users (such as those who would use the web console).
Change to
web_console_role_test.go
results in:Followed by the updates to
dead.go
to return the test to passing.@enj @jwforres