-
Notifications
You must be signed in to change notification settings - Fork 53
[patch] MAS and Manage RBAC Permissions in Install pipeline #2248
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
unnati-solanki-git
wants to merge
40
commits into
master
Choose a base branch
from
rbac-permissions
base: master
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
40 commits
Select commit
Hold shift + click to select a range
007b1e4
[patch] Fix required permissions
unnati-solanki-git e94fdc6
[patch] Update sls and db2u permissions
unnati-solanki-git 4a72d53
[patch] Update suite and must-gather permissions
unnati-solanki-git 836b0a6
[patch] Add required app permissions in install pipeline
unnati-solanki-git f48d4d9
[patch] Permission for finalizer
unnati-solanki-git c12a6e3
Merge branch 'master' of github.com:ibm-mas/cli into rbac-permissions
unnati-solanki-git 597fab5
[patch] Disable must-gather permissions tmp
unnati-solanki-git 3cdc13a
Merge branch 'master' into rbac-permissions
unnati-solanki-git e339343
Merge branch 'master' into rbac-permissions
unnati-solanki-git 845b7f6
[patch] Core and Manage permissions
unnati-solanki-git a56fd0f
Merge branch 'master' into rbac-permissions
unnati-solanki-git a12b069
[patch] Remove cluster admin permissions
unnati-solanki-git 871c344
Merge branch 'master' of github.com:ibm-mas/cli into rbac-permissions
unnati-solanki-git 39c466e
Merge branch 'rbac-permissions' of github.com:ibm-mas/cli into rbac-p…
unnati-solanki-git 657f84f
[patch] Fix nvidia-gpu permission
unnati-solanki-git e6b0b92
[patch] Fix nvidia permission
unnati-solanki-git 488a664
[patch] Fix nvidia gpu operator permissions
unnati-solanki-git 2eea785
Merge branch 'master' into rbac-permissions
unnati-solanki-git 43c74e9
[patch] Adding cpd nvidia and kube system permissions
unnati-solanki-git f900eef
Merge branch 'master' of github.com:ibm-mas/cli into rbac-permissions
unnati-solanki-git be49af5
Merge branch 'rbac-permissions' of github.com:ibm-mas/cli into rbac-p…
unnati-solanki-git 76a0eca
Merge branch 'master' into rbac-permissions
unnati-solanki-git 1f50a97
Merge branch 'master' of github.com:ibm-mas/cli into rbac-permissions
unnati-solanki-git b67145b
[patch] Update permissions for cp4d and kube-system
unnati-solanki-git 7688c82
Merge branch 'rbac-permissions' of github.com:ibm-mas/cli into rbac-p…
unnati-solanki-git 1ddf91d
[patch] Fix cp4d permissions
unnati-solanki-git ba477fd
Merge branch 'master' into rbac-permissions
unnati-solanki-git bec7e01
[patch] Fix cp4d role
unnati-solanki-git 458146d
Merge branch 'master' into rbac-permissions
unnati-solanki-git ad4593f
[patch] impersonate user
unnati-solanki-git 28d2f5e
Merge branch 'rbac-permissions' of github.com:ibm-mas/cli into rbac-p…
unnati-solanki-git a062019
Merge branch 'master' into rbac-permissions
unnati-solanki-git 4aa34c2
Merge branch 'rbac-permissions' of github.com:ibm-mas/cli into rbac-p…
unnati-solanki-git cbe373b
[patch] CP4d cluster admin permissions
unnati-solanki-git 45312fa
Merge branch 'master' into rbac-permissions
unnati-solanki-git 9ac9a73
Merge branch 'master' into rbac-permissions
unnati-solanki-git 5871bc9
Merge branch 'master' into rbac-permissions
unnati-solanki-git dccf3bb
Merge branch 'rbac-permissions' of github.com:ibm-mas/cli into rbac-p…
unnati-solanki-git e61f266
[patch] Addressed review comments
unnati-solanki-git aaaaf7e
Merge branch 'master' into rbac-permissions
unnati-solanki-git 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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: RoleBinding | ||
| metadata: | ||
| name: mas:{{ mas_instance_id }}:install-pipeline:ibm-cpd-operators | ||
| namespace: ibm-cpd-operators | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: Role | ||
| name: mas:{{ mas_instance_id }}:install-pipeline:ibm-cpd-operators | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: mas-{{ mas_instance_id }}-install-pipeline | ||
| namespace: mas-{{ mas_instance_id }}-pipelines | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: Role | ||
| metadata: | ||
| name: mas:{{ mas_instance_id }}:install-pipeline:ibm-cpd-operators | ||
| namespace: ibm-cpd-operators | ||
| rules: | ||
| # Cloud Pak for Data operator installation | ||
| - apiGroups: | ||
| - operators.coreos.com | ||
| resources: | ||
| - installplans | ||
| - operatorgroups | ||
| - subscriptions | ||
| verbs: | ||
| - get | ||
| - list | ||
| - create | ||
| - patch | ||
| # IBM entitlement key secret and service accounts | ||
| - apiGroups: | ||
| - "" | ||
| resources: | ||
| - secrets | ||
| - serviceaccounts | ||
| verbs: | ||
| - get | ||
| - list | ||
| - create | ||
| - patch | ||
| - update | ||
| # CPD operators need to create RBAC resources | ||
| - apiGroups: | ||
| - rbac.authorization.k8s.io | ||
| resources: | ||
| - roles | ||
| - rolebindings | ||
| verbs: | ||
| - get | ||
| - list | ||
| - create | ||
| - patch | ||
| - update | ||
| - delete | ||
| # Grant wildcard permissions that CPD operators need to delegate | ||
| - apiGroups: | ||
| - "*" | ||
| resources: | ||
| - "*" | ||
| verbs: | ||
| - create | ||
| - delete | ||
| - get | ||
| - list | ||
| - patch | ||
| - update | ||
| - watch | ||
| - deletecollection | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: RoleBinding | ||
| metadata: | ||
| name: mas:{{ mas_instance_id }}:install-pipeline:ibm-cpd | ||
| namespace: ibm-cpd | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: Role | ||
| name: mas:{{ mas_instance_id }}:install-pipeline:ibm-cpd | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: mas-{{ mas_instance_id }}-install-pipeline | ||
| namespace: mas-{{ mas_instance_id }}-pipelines | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: Role | ||
| metadata: | ||
| name: mas:{{ mas_instance_id }}:install-pipeline:ibm-cpd | ||
| namespace: ibm-cpd | ||
| rules: | ||
| # Cloud Pak for Data instance management | ||
| - apiGroups: | ||
| - "" | ||
| resources: | ||
| - secrets | ||
| - configmaps | ||
| - serviceaccounts | ||
| verbs: | ||
| - get | ||
| - list | ||
| - create | ||
| - patch | ||
| - update | ||
| # CPD services and deployments | ||
| - apiGroups: | ||
| - apps | ||
| resources: | ||
| - deployments | ||
| - statefulsets | ||
| verbs: | ||
| - get | ||
| - list | ||
| - create | ||
| - patch | ||
| - update | ||
| # CPD routes | ||
| - apiGroups: | ||
| - route.openshift.io | ||
| resources: | ||
| - routes | ||
| verbs: | ||
| - get | ||
| - list | ||
| - create | ||
| - patch | ||
| - update |
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Even if we don't require use to be a cluster admin (second check), we still want the first check (that they are logged into the cluster) ?
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.
Done