jaegertracing / helm-charts

Helm Charts for Jaeger backend
Apache License 2.0
254 stars 338 forks source link

[Jaeger] fix .allinone.replicas helm value #499

Closed micolun closed 10 months ago

micolun commented 10 months ago

This PR fixes the bug created after PR#494 when helm chart value .allInOne.replicas is 0 but the deployment is still set to 1.

When the below if statement is computed for replicas: 0, the result is false and as a consequence the deployment manifest doesn't contain replicas field, which in turn forces it to use the default value, which is 1.

spec:
  {{- if .Values.allInOne.replicas }}
  replicas: {{ .Values.allInOne.replicas }}
  {{- end }}

Checklist

pavelnikolov commented 10 months ago

@Mihail-blip not all commit have been signed. Could you, please, squash all the two commits into one and sign them?

micolun commented 10 months ago

One of my first contributions, I accidentally closed the PR. Think I managed to gpg sign the commits, please review

pavelnikolov commented 10 months ago

The PR is still not DCO signed. Thank you for reporting. Fixed in https://github.com/jaegertracing/helm-charts/commit/28ab98bfb2b2c5ab4f024b7337c3bb76871a0768