apiVersion: v1 kind: ServiceAccount metadata: name: zuul-operator --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: zuul-operator rules: - apiGroups: - "" resources: - pods - pods/exec - services - services/finalizers - endpoints - persistentvolumeclaims - events - configmaps - secrets - ingresses verbs: - create - delete - get - list - patch - update - watch - apiGroups: - apps resources: - deployments - daemonsets - replicasets - statefulsets verbs: - create - delete - get - list - patch - update - watch - apiGroups: - monitoring.coreos.com resources: - servicemonitors verbs: - get - create - apiGroups: - apps resourceNames: - zuul-operator resources: - deployments/finalizers verbs: - update - apiGroups: - "" resources: - pods verbs: - get - apiGroups: - apps resources: - replicasets - deployments verbs: - get - apiGroups: - operator.zuul-ci.org resources: - '*' verbs: - create - delete - get - list - patch - update - watch - apiGroups: - cert-manager.io resources: - '*' verbs: - create - delete - get - list - patch - update - watch --- kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: zuul-operator subjects: - kind: ServiceAccount name: zuul-operator roleRef: kind: Role name: zuul-operator apiGroup: rbac.authorization.k8s.io