diff --git a/stable/prometheus-adapter/Chart.yaml b/stable/prometheus-adapter/Chart.yaml index 8fbfac790c54..8647b9a6c1fd 100644 --- a/stable/prometheus-adapter/Chart.yaml +++ b/stable/prometheus-adapter/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: prometheus-adapter -version: 2.1.1 +version: 2.1.2 appVersion: v0.6.0 description: A Helm chart for k8s prometheus adapter home: https://github.com/DirectXMan12/k8s-prometheus-adapter diff --git a/stable/prometheus-adapter/templates/custom-metrics-apiservice.yaml b/stable/prometheus-adapter/templates/custom-metrics-apiservice.yaml index 676402143caa..1eb380d70f99 100644 --- a/stable/prometheus-adapter/templates/custom-metrics-apiservice.yaml +++ b/stable/prometheus-adapter/templates/custom-metrics-apiservice.yaml @@ -1,3 +1,4 @@ +{{- if or .Values.rules.default .Values.rules.custom }} apiVersion: apiregistration.k8s.io/v1beta1 kind: APIService metadata: @@ -19,3 +20,4 @@ spec: insecureSkipTLSVerify: {{ if .Values.tls.enable }}false{{ else }}true{{ end }} groupPriorityMinimum: 100 versionPriority: 100 +{{- end }}