Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #743 from stlaz/privileged_ns_roles
add roles for the new privileged namespaces PSa syncer controller
- Loading branch information
Showing
6 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...ager/podsecurity-admission-label-privileged-namespaces-syncer-controller-clusterrole.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,24 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
annotations: | ||
name: system:openshift:controller:privileged-namespaces-psa-label-syncer | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- namespaces | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resourceNames: | ||
- default | ||
- kube-system | ||
- kube-public | ||
resources: | ||
- namespaces | ||
verbs: | ||
- patch |
12 changes: 12 additions & 0 deletions
12
...dsecurity-admission-label-privileged-namespaces-syncer-controller-clusterrolebinding.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,12 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: system:openshift:controller:privileged-namespaces-psa-label-syncer | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: system:openshift:controller:privileged-namespaces-psa-label-syncer | ||
subjects: | ||
- kind: ServiceAccount | ||
name: privileged-namespaces-psa-label-syncer | ||
namespace: openshift-infra |
24 changes: 24 additions & 0 deletions
24
...s/00_podsecurity-admission-label-privileged-namespaces-syncer-controller-clusterrole.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,24 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
annotations: | ||
name: system:openshift:controller:privileged-namespaces-psa-label-syncer | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- namespaces | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resourceNames: | ||
- default | ||
- kube-system | ||
- kube-public | ||
resources: | ||
- namespaces | ||
verbs: | ||
- patch |
12 changes: 12 additions & 0 deletions
12
...dsecurity-admission-label-privileged-namespaces-syncer-controller-clusterrolebinding.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,12 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: system:openshift:controller:privileged-namespaces-psa-label-syncer | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: system:openshift:controller:privileged-namespaces-psa-label-syncer | ||
subjects: | ||
- kind: ServiceAccount | ||
name: privileged-namespaces-psa-label-syncer | ||
namespace: openshift-infra |
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