From 16b9cb1bdaa97610f8f596950ace7e10f29cc4e5 Mon Sep 17 00:00:00 2001 From: darms Date: Fri, 15 Dec 2023 13:48:57 +0100 Subject: [PATCH] fix(k8s.csh): Fix creation issue if no resources are specified --- k8s/central-search-hub/Chart.yaml | 2 +- k8s/central-search-hub/templates/elastic.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/k8s/central-search-hub/Chart.yaml b/k8s/central-search-hub/Chart.yaml index 5e1e365..4cdfe73 100644 --- a/k8s/central-search-hub/Chart.yaml +++ b/k8s/central-search-hub/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.0 +version: 0.3.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/k8s/central-search-hub/templates/elastic.yaml b/k8s/central-search-hub/templates/elastic.yaml index 06888e0..eb79a5d 100644 --- a/k8s/central-search-hub/templates/elastic.yaml +++ b/k8s/central-search-hub/templates/elastic.yaml @@ -15,7 +15,9 @@ spec: containers: - name: elasticsearch image: elasticsearch:7.9.3 + {{- if .Values.elasticsearch.resources }} {{ toYaml .Values.elasticsearch.resources | indent 14 }} + {{- end }} env: - name: discovery.type value: single-node