diff --git a/charts/meilisearch/Chart.yaml b/charts/meilisearch/Chart.yaml index c00ecfd..2042eaa 100644 --- a/charts/meilisearch/Chart.yaml +++ b/charts/meilisearch/Chart.yaml @@ -2,11 +2,11 @@ apiVersion: v1 appVersion: "v1.10.0" description: A Helm chart for the Meilisearch search engine name: meilisearch -version: 0.10.1 +version: 0.10.2 icon: https://raw.githubusercontent.com/meilisearch/integration-guides/main/assets/logos/logo.svg home: https://github.com/meilisearch/meilisearch-kubernetes/tree/main/charts/meilisearch maintainers: - - name: Bruno - email: bruno@meilisearch.com - - name: Clementine - email: clementine@meilisearch.com + - name: Bruno + email: bruno@meilisearch.com + - name: Clementine + email: clementine@meilisearch.com diff --git a/charts/meilisearch/templates/statefulset.yaml b/charts/meilisearch/templates/statefulset.yaml index 934af82..d21071d 100644 --- a/charts/meilisearch/templates/statefulset.yaml +++ b/charts/meilisearch/templates/statefulset.yaml @@ -5,7 +5,13 @@ metadata: labels: {{- include "meilisearch.labels" . | nindent 4 }} spec: + # Value 0 is bad interpreted it goes to 1 by default + # https://github.com/helm/helm/issues/3164 + {{- if (eq 0 (int .Values.replicaCount))}} + replicas: 0 + {{- else }} replicas: {{ .Values.replicaCount | default 1 }} + {{- end }} serviceName: {{ template "meilisearch.fullname" . }} selector: matchLabels: diff --git a/manifests/meilisearch.yaml b/manifests/meilisearch.yaml index 744f5dc..19ad645 100644 --- a/manifests/meilisearch.yaml +++ b/manifests/meilisearch.yaml @@ -60,7 +60,9 @@ metadata: app.kubernetes.io/component: search-engine app.kubernetes.io/part-of: meilisearch spec: - replicas: 1 + # Value 0 is bad interpreted it goes to 1 by default + # https://github.com/helm/helm/issues/3164 + replicas: 0 serviceName: meilisearch selector: matchLabels: @@ -75,7 +77,7 @@ spec: app.kubernetes.io/component: search-engine app.kubernetes.io/part-of: meilisearch annotations: - checksum/config: 57066f343c11bb744192756429e406248806cda981bd4a71c7c02dcafc103072 + checksum/config: 3b17fd234a29aacf2e98ffa09aca207fa5519140923bc64b656070f54412fe1f spec: serviceAccountName: meilisearch securityContext: