2022-01-18 22:27:12 +00:00
|
|
|
{{- if .Values.agentk8sglue.enabled }}
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: Role
|
|
|
|
metadata:
|
|
|
|
name: k8sagent-pods-access
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- pods
|
2022-03-01 16:48:33 +00:00
|
|
|
verbs: ["get", "list", "watch", "create", "patch", "delete"]
|
2022-01-18 22:27:12 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: RoleBinding
|
|
|
|
metadata:
|
|
|
|
name: k8sagent-pods-access
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: default
|
2022-04-22 08:19:03 +00:00
|
|
|
namespace: {{ .Release.Namespace }}
|
2022-01-18 22:27:12 +00:00
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: Role
|
|
|
|
name: k8sagent-pods-access
|
|
|
|
{{- end }}
|