rancher-charts/packages/rancher-alerting/rancher-prom2teams/generated-changes/overlay/templates/rolebinding.yaml

16 lines
508 B
YAML
Raw Normal View History

2022-12-15 06:56:50 +00:00
{{- if .Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy" }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "prom2teams.fullname" . }}-psp
namespace: {{ include "prom2teams.namespace" . }}
labels: {{ include "prom2teams.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ include "prom2teams.fullname" . }}-psp
subjects:
- kind: ServiceAccount
name: {{ include "prom2teams.fullname" . }}
2022-12-15 06:56:50 +00:00
{{- end }}