Skip to content

Commit

Permalink
Merge pull request #360 from stlaz/namespaces_allocations
Browse files Browse the repository at this point in the history
Add clusterrole for namespace security allocatoion controller
  • Loading branch information
openshift-merge-robot committed Mar 6, 2020
2 parents ce70014 + 9e522eb commit bef4f05
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 6 deletions.
@@ -0,0 +1,33 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
rbac.authorization.kubernetes.io/autoupdate: "true"
creationTimestamp: null
name: system:openshift:controller:namespace-security-allocation-controller
rules:
- apiGroups:
- security.openshift.io
resources:
- rangeallocations
verbs:
- create
- get
- update
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- update
@@ -0,0 +1,15 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
rbac.authorization.kubernetes.io/autoupdate: "true"
creationTimestamp: null
name: system:openshift:controller:namespace-security-allocation-controller
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:openshift:controller:namespace-security-allocation-controller
subjects:
- kind: ServiceAccount
name: namespace-security-allocation-controller
namespace: openshift-infra
2 changes: 2 additions & 0 deletions pkg/operator/targetconfigcontroller/targetconfigcontroller.go
Expand Up @@ -190,6 +190,8 @@ func createTargetConfigController(c TargetConfigController, recorder events.Reco
"v4.1.0/kube-controller-manager/leader-election-cluster-policy-controller-rolebinding.yaml",
"v4.1.0/kube-controller-manager/leader-election-kube-controller-manager-role-kube-system.yaml",
"v4.1.0/kube-controller-manager/leader-election-kube-controller-manager-rolebinding-kube-system.yaml",
"v4.1.0/kube-controller-manager/namespace-security-allocation-controller-clusterrole.yaml",
"v4.1.0/kube-controller-manager/namespace-security-allocation-controller-clusterrolebinding.yaml",
"v4.1.0/kube-controller-manager/svc.yaml",
"v4.1.0/kube-controller-manager/sa.yaml",
"v4.1.0/kube-controller-manager/localhost-recovery-client-crb.yaml",
Expand Down
98 changes: 92 additions & 6 deletions pkg/operator/v411_00_assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bef4f05

Please sign in to comment.