mirror of
https://github.com/bitnami/charts.git
synced 2026-03-05 14:57:31 +08:00
* [bitnami/metrics-server] add commonLabels and commonAnnotations to all metrics-server components * update Chart minor version
23 lines
863 B
YAML
23 lines
863 B
YAML
{{- if .Values.rbac.create -}}
|
|
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: {{ printf "%s-auth-reader" (include "common.names.fullname" .) }}
|
|
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: Role
|
|
name: extension-apiserver-authentication-reader
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ template "common.names.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end -}}
|