Files
charts/bitnami/metrics-server/templates/auth-delegator-crb.yaml
Francisco de Paz Galan c45e126e87 [bitnami/metrics-server] Add tests and publishing using VIB (#12637)
* [bitnami/metrics-server] Add tests and publishing using VIB

Signed-off-by: FraPazGal <fdepaz@vmware.com>

* Modify cluster-wide resources naming

Signed-off-by: FraPazGal <fdepaz@vmware.com>

* Add missing runtime_param

Signed-off-by: FraPazGal <fdepaz@vmware.com>

Signed-off-by: FraPazGal <fdepaz@vmware.com>
2022-09-26 09:40:28 +02:00

23 lines
898 B
YAML

{{- if .Values.rbac.create -}}
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
kind: ClusterRoleBinding
metadata:
name: {{ printf "%s-auth-delegator" (include "common.names.fullname.namespace" .) }}
namespace: kube-system
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:auth-delegator
subjects:
- kind: ServiceAccount
name: {{ template "common.names.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
{{- end -}}