-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Narrower role bindings for CP4S
- Loading branch information
Showing
22 changed files
with
69 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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 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
File renamed without changes.
This file contains 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
36 changes: 0 additions & 36 deletions
36
config/cloudpaks/cp4s/install/templates/prereqs/020-cp4s-role.yaml
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
config/cloudpaks/cp4s/templates/prereqs/000-knative-namespace.yaml
This file contains 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,8 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
creationTimestamp: null | ||
name: knative-serving | ||
spec: {} | ||
status: {} |
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
config/cloudpaks/cp4s/templates/prereqs/020-cp4s-role-knative.yaml
This file contains 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,13 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "20" | ||
creationTimestamp: null | ||
name: ibm-cp4s-knative | ||
namespace: knative-serving | ||
rules: | ||
- apiGroups: ["operator.knative.dev"] | ||
resources: ["knativeservings"] | ||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] |
19 changes: 19 additions & 0 deletions
19
config/cloudpaks/cp4s/templates/prereqs/020-cp4s-role.yaml
This file contains 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,19 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "21" | ||
creationTimestamp: null | ||
name: ibm-cp4s | ||
namespace: "{{.Values.metadata.argocd_app_namespace}}" | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["pods/exec", "secrets", "serviceaccounts", "services"] | ||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] | ||
- apiGroups: ["apps"] | ||
resources: ["deployments"] | ||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] | ||
- apiGroups: ["isc.ibm.com"] | ||
resources: ["cp4sthreatmanagements"] | ||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] |
17 changes: 17 additions & 0 deletions
17
config/cloudpaks/cp4s/templates/prereqs/030-argocd-role-binding-knative.yaml
This file contains 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: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "30" | ||
creationTimestamp: null | ||
name: ibm-cp4s-role-knative | ||
namespace: knative-serving | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: ibm-cp4s-knative | ||
subjects: | ||
- kind: ServiceAccount | ||
name: "{{.Values.serviceaccount.argocd_application_controller}}" | ||
namespace: "{{.Values.metadata.argocd_namespace}}" |
9 changes: 5 additions & 4 deletions
9
...rereqs/030-argocd-role-binding-admin.yaml → ...ates/prereqs/030-argocd-role-binding.yaml
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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