20 lines
583 B
YAML
20 lines
583 B
YAML
|
{{- if .Values.rbac.create -}}
|
||
|
{{- if .Values.addonResizer.enabled -}}
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: RoleBinding
|
||
|
metadata:
|
||
|
name: {{ printf "%s-nanny" (include "metrics-server.fullname" .) }}
|
||
|
namespace: kube-system
|
||
|
labels:
|
||
|
{{- include "metrics-server.labels" . | nindent 4 }}
|
||
|
roleRef:
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
kind: Role
|
||
|
name: {{ include "metrics-server.addonResizer.role" . }}
|
||
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: {{ include "metrics-server.serviceAccountName" . }}
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
{{- end -}}
|
||
|
{{- end -}}
|