From 899d5d6080c7fb35a1af4c0036ce62c6e0b5c6e5 Mon Sep 17 00:00:00 2001 From: AshutoshNirkhe Date: Mon, 20 Jun 2022 12:26:20 +0530 Subject: [PATCH] Fix certificate condition in deployment file for #375 --- charts/jaeger-operator/Chart.yaml | 2 +- charts/jaeger-operator/templates/deployment.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/jaeger-operator/Chart.yaml b/charts/jaeger-operator/Chart.yaml index 1e6791a5..6efd37bf 100644 --- a/charts/jaeger-operator/Chart.yaml +++ b/charts/jaeger-operator/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: jaeger-operator Helm chart for Kubernetes name: jaeger-operator -version: 2.32.2 +version: 2.32.3 appVersion: 1.34.1 home: https://www.jaegertracing.io/ icon: https://www.jaegertracing.io/img/jaeger-icon-reverse-color.svg diff --git a/charts/jaeger-operator/templates/deployment.yaml b/charts/jaeger-operator/templates/deployment.yaml index 01b10b72..9bce954a 100644 --- a/charts/jaeger-operator/templates/deployment.yaml +++ b/charts/jaeger-operator/templates/deployment.yaml @@ -48,10 +48,12 @@ spec: - containerPort: 9443 name: webhook-server protocol: TCP + {{- if .Values.certs.certificate.create }} volumeMounts: - mountPath: /tmp/k8s-webhook-server/serving-certs name: cert readOnly: true + {{- end }} args: ["start"] env: - name: WATCH_NAMESPACE @@ -77,11 +79,13 @@ spec: {{- end }} resources: {{ toYaml .Values.resources | indent 12 }} + {{- if .Values.certs.certificate.create }} volumes: - name: cert secret: defaultMode: 420 secretName: {{ default "jaeger-operator-service-cert" .Values.certs.certificate.secretName }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }}