From 696102a6bc3777c2c259792bb06d7e1a41f70bed Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 20 Sep 2022 13:25:00 +0300 Subject: [PATCH] [bitnami/wavefront-hpa-adapter] Use custom probes if given (#12566) Without this change, in order to use a custom probe, the user has to specify the probe parameters, and also must specify for the original probe "enabled: false". Issue: #12354 Signed-off-by: Orgad Shaneh Signed-off-by: Orgad Shaneh --- bitnami/wavefront-hpa-adapter/Chart.yaml | 2 +- .../custom-metrics-apiserver-deployment.yaml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bitnami/wavefront-hpa-adapter/Chart.yaml b/bitnami/wavefront-hpa-adapter/Chart.yaml index 7b2f05427..52bb2d976 100644 --- a/bitnami/wavefront-hpa-adapter/Chart.yaml +++ b/bitnami/wavefront-hpa-adapter/Chart.yaml @@ -25,4 +25,4 @@ maintainers: name: wavefront-hpa-adapter sources: - https://github.com/bitnami/containers/tree/main/bitnami/wavefront-hpa-adapter -version: 1.3.2 +version: 1.3.3 diff --git a/bitnami/wavefront-hpa-adapter/templates/custom-metrics-apiserver-deployment.yaml b/bitnami/wavefront-hpa-adapter/templates/custom-metrics-apiserver-deployment.yaml index 83944513b..5e803c155 100644 --- a/bitnami/wavefront-hpa-adapter/templates/custom-metrics-apiserver-deployment.yaml +++ b/bitnami/wavefront-hpa-adapter/templates/custom-metrics-apiserver-deployment.yaml @@ -116,7 +116,9 @@ spec: ports: - containerPort: {{ .Values.containerPorts.https }} name: https - {{- if .Values.livenessProbe.enabled }} + {{- if .Values.customLivenessProbe }} + livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }} + {{- else if .Values.livenessProbe.enabled }} livenessProbe: tcpSocket: port: https @@ -125,10 +127,10 @@ spec: timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} successThreshold: {{ .Values.livenessProbe.successThreshold }} failureThreshold: {{ .Values.livenessProbe.failureThreshold }} - {{- else if .Values.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }} {{- end }} - {{- if .Values.readinessProbe.enabled }} + {{- if .Values.customReadinessProbe }} + readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }} + {{- else if .Values.readinessProbe.enabled }} readinessProbe: tcpSocket: port: https @@ -137,10 +139,10 @@ spec: timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} successThreshold: {{ .Values.readinessProbe.successThreshold }} failureThreshold: {{ .Values.readinessProbe.failureThreshold }} - {{- else if .Values.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }} {{- end }} - {{- if .Values.startupProbe.enabled }} + {{- if .Values.customStartupProbe }} + startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customStartupProbe "context" $) | nindent 12 }} + {{- else if .Values.startupProbe.enabled }} startupProbe: tcpSocket: port: https @@ -149,8 +151,6 @@ spec: timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }} successThreshold: {{ .Values.startupProbe.successThreshold }} failureThreshold: {{ .Values.startupProbe.failureThreshold }} - {{- else if .Values.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customStartupProbe "context" $) | nindent 12 }} {{- end }} volumeMounts: - mountPath: /tmp