apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ .Release.Name }}-executor rules: - apiGroups: - "" resources: - configmaps - pods - secrets - services - serviceaccounts - replicationcontrollers - events verbs: - create - delete - get - list - watch - patch - apiGroups: - apps resources: - deployments - deployments/scale - replicasets verbs: - create - get - list - watch - update - patch - delete - apiGroups: - apiextensions.k8s.io resources: - customresourcedefinitions verbs: - get - list - watch - apiGroups: - autoscaling resources: - horizontalpodautoscalers verbs: - create - get - list - watch - update - patch - delete - apiGroups: - rbac.authorization.k8s.io resources: - rolebindings verbs: - create - get - list - watch - update - patch - delete - apiGroups: - rbac.authorization.k8s.io resources: - clusterroles verbs: - bind - apiGroups: - metrics.k8s.io resources: - pods verbs: - get - list