github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/prometheus-adapter/templates/resource-metrics-apiservice.yaml (about) 1 {{- if .Values.rules.resource}} 2 {{- if .Capabilities.APIVersions.Has "apiregistration.k8s.io/v1" }} 3 apiVersion: apiregistration.k8s.io/v1 4 {{- else }} 5 apiVersion: apiregistration.k8s.io/v1beta1 6 {{- end }} 7 kind: APIService 8 metadata: 9 {{- if or .Values.certManager.enabled .Values.customAnnotations }} 10 annotations: 11 certmanager.k8s.io/inject-ca-from: {{ printf "%s/%s-root-cert" (include "k8s-prometheus-adapter.namespace" .) (include "k8s-prometheus-adapter.fullname" .) | quote }} 12 cert-manager.io/inject-ca-from: {{ printf "%s/%s-root-cert" (include "k8s-prometheus-adapter.namespace" .) (include "k8s-prometheus-adapter.fullname" .) | quote }} 13 {{- if .Values.customAnnotations }} 14 {{- toYaml .Values.customAnnotations | nindent 4 }} 15 {{- end }} 16 {{- end }} 17 labels: 18 {{- include "k8s-prometheus-adapter.labels" . | indent 4 }} 19 name: v1beta1.metrics.k8s.io 20 spec: 21 service: 22 name: {{ template "k8s-prometheus-adapter.fullname" . }} 23 namespace: {{ include "k8s-prometheus-adapter.namespace" . | quote }} 24 {{- if .Values.tls.enable }} 25 caBundle: {{ b64enc .Values.tls.ca }} 26 {{- end }} 27 group: metrics.k8s.io 28 version: v1beta1 29 insecureSkipTLSVerify: {{ if or .Values.tls.enable .Values.certManager.enabled }}false{{ else }}true{{ end }} 30 groupPriorityMinimum: 100 31 versionPriority: 100 32 {{- end -}}