-
Notifications
You must be signed in to change notification settings - Fork 96
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
Bug 1907812: Use separate RBAC objects for AWS CA bundle retrieval #118
Bug 1907812: Use separate RBAC objects for AWS CA bundle retrieval #118
Conversation
@jsafrane: This pull request references Bugzilla bug 1907812, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
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. |
777c8fe
to
7bb4546
Compare
When downgrading 4.7 cluster to 4.6, we must make sure that the 4.7 operator still can read AWS configuration (openshift-config-managed/kube-cloud-config ConfigMap) when CVO / OCS already downgraded the RBAC rules to 4.6 version. Otherwise the operator gets degraded. Therefore use a separate RBAC objects, they won't be removed when downgrading to 4.6 at all.
7bb4546
to
3275aeb
Compare
/retest |
# Allow reading openshift-config-managed/kube-cloud-config ConfigMap | ||
# with CA bundle. | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole |
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.
Since the goal here is to allow reading a specific ConfigMap in a specific namespace, could we convert this ClusterRole
into a Role
and specify the namespace and the resource name? Like:
metadata:
namespace: openshift-config-managed
(...)
resources:
- configmaps
resourceNames:
- kube-cloud-config
(...)
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.
I tried resourceNames:
, but CSO failed to watch
- it watches all configmaps in the namespace. I'll try Role
referring to a ServiceAccount in a different 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.
Ok, it seems it does something - at least AWS EBS operator is not complaining about RBACs.
9993d80
to
58423e2
Compare
/retest |
2 similar comments
/retest |
/retest |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bertinatto, jsafrane 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
8 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@jsafrane: All pull requests linked via external trackers have merged: Bugzilla bug 1907812 has been moved to the MODIFIED state. 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. |
When downgrading 4.7 cluster to 4.6, we must make sure that the 4.7 operator still can read AWS configuration (
openshift-config-managed/kube-cloud-config
ConfigMap) when CVO / OCS already downgraded the RBAC rules to 4.6 version. Otherwise the operator gets degraded.Therefore use a separate RBAC objects, they won't be removed when downgrading to 4.6 at all.
@openshift/storage