From 50a83c31c39b351858f42d0228002ad6b993db6e Mon Sep 17 00:00:00 2001
From: Peter Zhu <zhujiaxi@amazon.com>
Date: Wed, 24 Jul 2024 14:30:26 -0400
Subject: [PATCH] fix(deployment): typo regarding topologySpreadConstraints

Signed-off-by: cpockrandt <cpockrandt@users.noreply.github.com>
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
---
 charts/opensearch-dashboards/CHANGELOG.md            | 12 +++++++++++-
 charts/opensearch-dashboards/Chart.yaml              |  2 +-
 .../opensearch-dashboards/templates/deployment.yaml  |  2 +-
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/charts/opensearch-dashboards/CHANGELOG.md b/charts/opensearch-dashboards/CHANGELOG.md
index 7240ae9d..d8f78127 100644
--- a/charts/opensearch-dashboards/CHANGELOG.md
+++ b/charts/opensearch-dashboards/CHANGELOG.md
@@ -13,6 +13,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Fixed
 ### Security
 ---
+## [2.19.1]
+### Added
+### Changed
+### Deprecated
+### Removed
+### Fixed
+- Fixed pod topology spread constraints in Dashboards
+### Security
+---
 ## [2.19.0]
 ### Added
 - Updated OpenSearch Dashboards appVersion to 2.15.0
@@ -340,7 +349,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Fixed
 ### Security
 
-[Unreleased]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-2.19.0...HEAD
+[Unreleased]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-2.19.1...HEAD
+[2.19.1]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-2.19.0...opensearch-dashboards-2.19.1
 [2.19.0]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-2.18.0...opensearch-dashboards-2.19.0
 [2.18.0]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-2.17.0...opensearch-dashboards-2.18.0
 [2.17.0]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-2.16.0...opensearch-dashboards-2.17.0
diff --git a/charts/opensearch-dashboards/Chart.yaml b/charts/opensearch-dashboards/Chart.yaml
index 06b173ff..a05a28d4 100644
--- a/charts/opensearch-dashboards/Chart.yaml
+++ b/charts/opensearch-dashboards/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: 2.19.0
+version: 2.19.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/charts/opensearch-dashboards/templates/deployment.yaml b/charts/opensearch-dashboards/templates/deployment.yaml
index f1d4916a..256cf054 100644
--- a/charts/opensearch-dashboards/templates/deployment.yaml
+++ b/charts/opensearch-dashboards/templates/deployment.yaml
@@ -79,7 +79,7 @@ spec:
     {{- end }}
     {{- if .Values.topologySpreadConstraints }}
       topologySpreadConstraints:
-{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
+{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
     {{- end }}
     {{- if .Values.imagePullSecrets }}
       imagePullSecrets: