rancher-partner-charts/charts/stackstate/stackstate-k8s-agent/templates/cluster-agent-role.yaml

22 lines
565 B
YAML

{{- $kubeRes := .Values.clusterAgent.collection.kubernetesResources }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ include "stackstate-k8s-agent.fullname" . }}
labels:
{{ include "stackstate-k8s-agent.labels" . | indent 4 }}
{{ include "stackstate-k8s-agent.global.extraLabels" . | indent 4 }}
app.kubernetes.io/component: cluster-agent
annotations:
{{ include "stackstate-k8s-agent.global.extraAnnotations" . | indent 4 }}
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- get
- patch
- update