use clusterrole for operator permissions

parent 1ce0622d
......@@ -24,9 +24,7 @@ spec:
imagePullPolicy: Always
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
value: ""
- name: POD_NAME
valueFrom:
fieldRef:
......
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
kind: ClusterRole
metadata:
creationTimestamp: null
name: nginx-operator
......
kind: RoleBinding
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: nginx-operator
subjects:
- kind: ServiceAccount
name: nginx-operator
namespace: nginx-operator-integration
roleRef:
kind: Role
kind: ClusterRole
name: nginx-operator
apiGroup: rbac.authorization.k8s.io
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment