From 9492a8cde07033858b5b22f7a388d9c02b8201e5 Mon Sep 17 00:00:00 2001 From: Oleh Hryhorov Date: Thu, 28 Nov 2019 17:22:42 +0200 Subject: [PATCH] Fixing typo in exporter-deployment.yaml PUBLISH_PORT The patch fixes typo in PUBLISH_PORT and adds quotes for PUBLISH_PORT because of the fact that it is string values otherwise it leads to the error below: error updating the release: rpc error: code = Unknown desc = release rabbitmq failed: Deployment in version "v1" cannot be handled as a Deployment: v1.Deployment.Spec: v1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.Value: ReadString: expects " or n, but found 9, error found in #10 byte of ...|,"value":9095},{"nam|..., bigger context ...|value":"no_sort"},{"name":"PUBLISH_PORT","value":9095},{"name":"LOG_LEVEL","value":"info"},{"name":"|... Change-Id: I027c91ee48df8eb5b4b2bf3fd28036b8eca47238 --- .../templates/monitoring/prometheus/exporter-deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rabbitmq/templates/monitoring/prometheus/exporter-deployment.yaml b/rabbitmq/templates/monitoring/prometheus/exporter-deployment.yaml index ab58c3259..e32a2f0f1 100644 --- a/rabbitmq/templates/monitoring/prometheus/exporter-deployment.yaml +++ b/rabbitmq/templates/monitoring/prometheus/exporter-deployment.yaml @@ -63,7 +63,7 @@ spec: - name: RABBIT_CAPABILITIES value: {{ include "helm-toolkit.utils.joinListWithComma" $envAll.Values.conf.prometheus_exporter.capabilities | quote }} - name: PUBLISH_PORT - value: {{ tuple "prometheus_rabbitmq_exporter" "internal" "metrics" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} + value: {{ tuple "prometheus_rabbitmq_exporter" "internal" "metrics" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }} - name: LOG_LEVEL value: {{ $envAll.Values.conf.prometheus_exporter.log_level | quote }} - name: SKIPVERIFY