Skip to content

Commit

Permalink
add tektonconfig rbac; make bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
gabemontero committed Aug 25, 2021
1 parent 5dfe7a5 commit 4923208
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bundle/manifests/operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,18 @@ spec:
- subjectaccessreviews
verbs:
- create
- apiGroups:
- operator.tekton.dev
resources:
- tektonconfigs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
serviceAccountName: default
deployments:
- name: operator-controller-manager
Expand Down
2 changes: 2 additions & 0 deletions config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ resources:
- role_binding.yaml
- leader_election_role.yaml
- leader_election_role_binding.yaml
- tektonconfig_operator_role.yaml
- tektonconfig_operator_rolebinding.yaml
# Comment the following 4 lines if you want to disable
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
# which protects your /metrics endpoint.
Expand Down
17 changes: 17 additions & 0 deletions config/rbac/tektonconfig_operator_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: tektonconfig-operator-role
rules:
- apiGroups:
- operator.tekton.dev
resources:
- tektonconfigs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
12 changes: 12 additions & 0 deletions config/rbac/tektonconfig_operator_rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: tektonconfig-operator-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: tektonconfig-operator-role
subjects:
- kind: ServiceAccount
name: default
namespace: system

0 comments on commit 4923208

Please sign in to comment.