From 3f7be17d672d026ab95261876d3ef345169c5d17 Mon Sep 17 00:00:00 2001 From: Sasikanth Lanka Date: Wed, 7 Feb 2024 17:09:03 +0530 Subject: [PATCH] fix: Add missing affinity section to charts Signed-off-by: Sasikanth Lanka --- charts/opensearch-cluster/Chart.yaml | 4 ++-- .../opensearch-cluster/templates/opensearch-cluster-cr.yaml | 6 +++++- charts/opensearch-operator/Chart.yaml | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/charts/opensearch-cluster/Chart.yaml b/charts/opensearch-cluster/Chart.yaml index 691425bdb..20c313520 100644 --- a/charts/opensearch-cluster/Chart.yaml +++ b/charts/opensearch-cluster/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: opensearch-cluster description: A Helm chart for OpenSearch Cluster type: application -version: 2.5.1 -appVersion: 2.5.1 +version: 2.5.2 +appVersion: 2.5.2 diff --git a/charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml b/charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml index dee830355..d1f72e93b 100644 --- a/charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml +++ b/charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml @@ -197,6 +197,10 @@ spec: nodeSelector: {{- toYaml $val.nodeSelector | nindent 8 }} {{- end }} + {{- if $val.affinity }} + affinity: + {{- toYaml $val.affinity | nindent 8 }} + {{- end }} {{- if $val.labels }} labels: # Add any extra labels as key-value pairs here {{ toYaml $val.labels | nindent 8 }} @@ -309,4 +313,4 @@ spec: {{- end }} {{- end }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/opensearch-operator/Chart.yaml b/charts/opensearch-operator/Chart.yaml index 6304d9189..1ef8f5447 100644 --- a/charts/opensearch-operator/Chart.yaml +++ b/charts/opensearch-operator/Chart.yaml @@ -15,10 +15,10 @@ 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: 2.5.1 +version: 2.5.2 # 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 # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: 2.5.1 +appVersion: 2.5.2