-
Notifications
You must be signed in to change notification settings - Fork 213
OCPBUGS-65621: add dedicated service account to crb, cvo and version pod #1266
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
Open
ehearne-redhat
wants to merge
21
commits into
openshift:main
Choose a base branch
from
ehearne-redhat:ensure-cvo-use-bespoke-service-account
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
bf44d47
add dedicated service account to crb, cvo and version pod
ehearne-redhat 29bce17
add new line to keep linter happy
ehearne-redhat 2982ece
add sa to testrendermanifest
ehearne-redhat ca25977
add dedicated sa for update payload
ehearne-redhat 825ac61
add cluster-admin clusterrole
ehearne-redhat 446f19b
remove cluster-admin role from file
ehearne-redhat bb1602f
add new cluster role with watch feature gate
ehearne-redhat d7e4cd0
re-add cluster-admin
ehearne-redhat 5641681
rename roles to ensure service account is added first
ehearne-redhat 5fe9198
rename cvo-dedicated-sa to cluster-version-operator
ehearne-redhat 6310c45
add default sa crb back to test into and out of change test failures
ehearne-redhat b39df2b
add back featuregate read role + remove default crb
ehearne-redhat 7d69c50
add new reader permissions
ehearne-redhat 0c875cc
add leases role and role binding
ehearne-redhat 7b05705
move roles back to 02 but ZZ to ensure applied last step of 02
ehearne-redhat 31c2b46
add annotations to ensure inclusion
ehearne-redhat 9002190
add scc privilege to cluster-version-operator service account
ehearne-redhat 38530cd
add missing annotations
ehearne-redhat a575e1c
allow cluster-version-operator service account to use hostaccess scc
ehearne-redhat fc55fa5
simplify role bindings to resolve scc test failure
ehearne-redhat 7be8122
ensure different names for crbs
ehearne-redhat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| metadata: | ||
| name: cluster-version-operator-1 | ||
| annotations: | ||
| include.release.openshift.io/self-managed-high-availability: "true" | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: cluster-version-operator | ||
| namespace: openshift-cluster-version | ||
| roleRef: | ||
| kind: ClusterRole | ||
| name: cluster-admin | ||
| apiGroup: rbac.authorization.k8s.io | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| metadata: | ||
| name: cluster-version-operator-payload | ||
| annotations: | ||
| include.release.openshift.io/self-managed-high-availability: "true" | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: update-payload-dedicated-sa | ||
| namespace: openshift-cluster-version | ||
| roleRef: | ||
| kind: ClusterRole | ||
| name: cluster-admin | ||
| apiGroup: rbac.authorization.k8s.io | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| metadata: | ||
| name: cluster-version-operator | ||
| annotations: | ||
| kubernetes.io/description: Grant the cluster-version operator permission to perform cluster-admin actions while managing the OpenShift core. | ||
| include.release.openshift.io/self-managed-high-availability: "true" | ||
| roleRef: | ||
| kind: ClusterRole | ||
| name: cluster-admin | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| namespace: openshift-cluster-version | ||
| name: default |
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
install/0000_00_cluster-version-operator_02_service_account.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| apiVersion: v1 | ||
| kind: ServiceAccount | ||
| metadata: | ||
| name: cluster-version-operator | ||
| namespace: openshift-cluster-version | ||
| annotations: | ||
| kubernetes.io/description: Dedicated Service Account for the Cluster Version Operator. | ||
| include.release.openshift.io/self-managed-high-availability: "true" | ||
| --- | ||
| apiVersion: v1 | ||
| kind: ServiceAccount | ||
| metadata: | ||
| name: update-payload-dedicated-sa | ||
| namespace: openshift-cluster-version | ||
| annotations: | ||
| kubernetes.io/description: Dedicated Service Account for the Update Payload. | ||
| include.release.openshift.io/self-managed-high-availability: "true" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.