github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/prometheus-adapter/templates/external-metrics-cluster-role-binding-hpa.yaml (about) 1 {{- if and .Values.rbac.create .Values.rules.external -}} 2 apiVersion: rbac.authorization.k8s.io/v1 3 kind: ClusterRoleBinding 4 metadata: 5 {{- if .Values.customAnnotations }} 6 annotations: 7 {{- toYaml .Values.customAnnotations | nindent 4 }} 8 {{- end }} 9 labels: 10 {{- include "k8s-prometheus-adapter.labels" . | indent 4 }} 11 name: {{ template "k8s-prometheus-adapter.name" . }}-hpa-controller-external-metrics 12 roleRef: 13 apiGroup: rbac.authorization.k8s.io 14 kind: ClusterRole 15 name: {{ template "k8s-prometheus-adapter.name" . }}-external-metrics 16 subjects: 17 - kind: ServiceAccount 18 name: horizontal-pod-autoscaler 19 namespace: kube-system 20 {{- end -}}