From a55f3a5aa25edca80b4ac63f0a21ee006d057309 Mon Sep 17 00:00:00 2001 From: Gage Hugo Date: Wed, 8 Sep 2021 10:58:06 -0500 Subject: [PATCH] Fix helm3 compatability The prometheus-kube-state-metrics chart currently fails to lint with helm3 due to an extra "-" character. This change removes the extra dash character in order to allow us to link and build the chart via helm v3. Change-Id: Ice1661b8e52fb7e2293d8b03a19e8e7ad43078ca --- prometheus-kube-state-metrics/Chart.yaml | 2 +- prometheus-kube-state-metrics/templates/deployment.yaml | 2 +- releasenotes/notes/prometheus-kube-state-metrics.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/prometheus-kube-state-metrics/Chart.yaml b/prometheus-kube-state-metrics/Chart.yaml index a5b1b408e..c2eb1de92 100644 --- a/prometheus-kube-state-metrics/Chart.yaml +++ b/prometheus-kube-state-metrics/Chart.yaml @@ -15,7 +15,7 @@ apiVersion: v1 appVersion: v1.3.1 description: OpenStack-Helm Kube-State-Metrics for Prometheus name: prometheus-kube-state-metrics -version: 0.1.4 +version: 0.1.5 home: https://github.com/kubernetes/kube-state-metrics sources: - https://github.com/kubernetes/kube-state-metrics diff --git a/prometheus-kube-state-metrics/templates/deployment.yaml b/prometheus-kube-state-metrics/templates/deployment.yaml index 344fade6e..d4cf72966 100644 --- a/prometheus-kube-state-metrics/templates/deployment.yaml +++ b/prometheus-kube-state-metrics/templates/deployment.yaml @@ -90,7 +90,7 @@ spec: ports: - name: metrics containerPort: {{ tuple "kube_state_metrics" "internal" "http" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} -{{ dict "envAll" . "component" "server" "container" "kube_metrics" "type" "readiness" "probeTemplate" (include "kubeMetricsReadinessProbe" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | indent 10 -}} +{{ dict "envAll" . "component" "server" "container" "kube_metrics" "type" "readiness" "probeTemplate" (include "kubeMetricsReadinessProbe" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | indent 10 }} volumeMounts: - name: pod-tmp mountPath: /tmp diff --git a/releasenotes/notes/prometheus-kube-state-metrics.yaml b/releasenotes/notes/prometheus-kube-state-metrics.yaml index 45df207f5..c4c8b4c3e 100644 --- a/releasenotes/notes/prometheus-kube-state-metrics.yaml +++ b/releasenotes/notes/prometheus-kube-state-metrics.yaml @@ -5,4 +5,5 @@ prometheus-kube-state-metrics: - 0.1.2 Update to make current - 0.1.3 Update image version from v2.0.0-alpha to v2.0.0-alpha-1 - 0.1.4 Use full image ref for docker official images + - 0.1.5 Fix helm3 compatability ...