Skip to content

Commit 8f08e77

Browse files
bluehawk27gdmcloud-experts-dmytropeterzhuamazonprudhvigodithi
authored
Add lifecycle hooks to opensearch dashboard helm chart (#145)
* Fix url to values.yaml in README.md in opensearch chart (#139) * Fix url to values.yaml in README.md in opensearch chart Signed-off-by: Dmytro Gorbunov <[email protected]> * Make URL to values.yaml in README.md more consistent (with reference section) Signed-off-by: Dmytro Gorbunov <[email protected]> * Increment the Chart version and update the Changelog Signed-off-by: Dmytro Gorbunov <[email protected]> * Update version of opensearch chart after resolving merge conflict Signed-off-by: Dmytro Gorbunov <[email protected]> Co-authored-by: Dmytro Gorbunov <[email protected]> Signed-off-by: bluehawk27 <[email protected]> * Add lifecycle hooks to opensearch dashboard helm chart Signed-off-by: bluehawk27 <[email protected]> * bump version and add changes to changelog Signed-off-by: bluehawk27 <[email protected]> * move change to correct version in changelog Signed-off-by: bluehawk27 <[email protected]> * Rebase on main Signed-off-by: Peter Zhu <[email protected]> * Rebase on main Signed-off-by: Peter Zhu <[email protected]> * Rebase on main Signed-off-by: Peter Zhu <[email protected]> * Upstream fetch and version update to [2.0.1], fix lint errors Signed-off-by: pgodithi <[email protected]> Co-authored-by: Dmytro Gorbunov <[email protected]> Co-authored-by: Dmytro Gorbunov <[email protected]> Co-authored-by: Peter Zhu <[email protected]> Co-authored-by: pgodithi <[email protected]>
1 parent c67e47e commit 8f08e77

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

charts/opensearch-dashboards/CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
### Fixed
1414
### Security
1515
---
16+
## [2.2.4]
17+
### Added
18+
- Add lifecycle hooks for opensearch-dashboards charts
19+
### Changed
20+
### Deprecated
21+
### Removed
22+
### Fixed
23+
### Security
24+
---
1625
## [2.2.3]
1726
### Added
1827
### Changed
@@ -77,7 +86,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7786
### Fixed
7887
### Security
7988

80-
[Unreleased]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-2.2.3...HEAD
89+
[Unreleased]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-2.2.4...HEAD
90+
[2.2.4]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-2.2.3...opensearch-dashboards-2.2.4
8191
[2.2.3]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-2.2.2...opensearch-dashboards-2.2.3
8292
[2.2.2]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-2.2.1...opensearch-dashboards-2.2.2
8393
[2.2.1]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-2.2.0...opensearch-dashboards-2.2.1

charts/opensearch-dashboards/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 2.2.3
18+
version: 2.2.4
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/opensearch-dashboards/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
| `image.repository` | The OpenSearch Docker image | `opensearchproject/opensearch` |
5252
| `ingress` | Configurable [ingress][] to expose the OpenSearch service. See [values.yaml][] for an example | see [values.yaml][] |
5353
| `labels` | Configurable [labels][] applied to all OpenSearch pods | `{}` |
54+
| `lifecycle` | Allows you to add [lifecycle hooks](https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/). See [values.yaml][] for an example | `{}` |
5455
| `nameOverride` | Overrides the `clusterName` when used in the naming of resources | `""` |
5556
| `nodeSelector` | Configurable [nodeSelector][] so that you can target specific nodes for your OpenSearch cluster | `{}` |
5657
| `podAnnotations` | Configurable [annotations][] applied to all OpenSearch pods | `{}` |
@@ -74,4 +75,4 @@
7475
| `tolerations` | Configurable [tolerations][] | `[]` |
7576
| `updateStrategy` | The [updateStrategy][] for the StatefulSet. By default Kubernetes will wait for the cluster to be green after upgrading each pod. Setting this to `OnDelete` will allow you to manually delete each pod during upgrades | `RollingUpdate` |
7677
| `extraObjects` | Array of extra K8s manifests to deploy | list `[]` |
77-
| `autoscaling` | Prerequisite: Install/Configure metrics server, to install use `kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml`, See https://github.com/kubernetes-sigs/metrics-server. Configurable pod autoscaling stratergy to scale based on `targetCPUUtilizationPercentage`, configure `minReplicas` and `maxReplicas` for desired scaling | false |
78+
| `autoscaling` | Prerequisite: Install/Configure metrics server, to install use `kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml`, See https://github.com/kubernetes-sigs/metrics-server. Configurable pod autoscaling stratergy to scale based on `targetCPUUtilizationPercentage`, configure `minReplicas` and `maxReplicas` for desired scaling | false |

charts/opensearch-dashboards/values.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,18 @@ extraObjects: []
188188
# type: Opaque
189189
# labels:
190190
# app.kubernetes.io/part-of: argocd
191+
192+
# pod lifecycle policies as outlined here:
193+
# https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
194+
lifecycle: {}
195+
# preStop:
196+
# exec:
197+
# command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]
198+
# postStart:
199+
# exec:
200+
# command:
201+
# - bash
202+
# - -c
203+
# - |
204+
# #!/bin/bash
205+
# curl -I "http://admin:[email protected]:5601/status -H "kbn-xsrf: true" -H 'kbn-xsrf: true' -H "Content-Type: application/json"

0 commit comments

Comments
 (0)