diff --git a/charts/opensearch/CHANGELOG.md b/charts/opensearch/CHANGELOG.md index eaa159dd..3c48f2f3 100644 --- a/charts/opensearch/CHANGELOG.md +++ b/charts/opensearch/CHANGELOG.md @@ -13,6 +13,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed ### Security --- +## [2.11.1] +### Added +- Support for lifecycle in the opensearch container in the StatefulSet +### Changed +### Deprecated +### Removed +### Fixed +### Security +--- ## [2.11.0] ### Added ### Changed diff --git a/charts/opensearch/Chart.yaml b/charts/opensearch/Chart.yaml index 3e071a8d..95a52e0b 100644 --- a/charts/opensearch/Chart.yaml +++ b/charts/opensearch/Chart.yaml @@ -15,7 +15,8 @@ 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.11.0 +version: 2.11.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/README.md b/charts/opensearch/README.md index 235c0b52..241257b0 100644 --- a/charts/opensearch/README.md +++ b/charts/opensearch/README.md @@ -2,10 +2,11 @@ This Helm chart installs [OpenSearch](https://github.com/opensearch-project/OpenSearch) with configurable TLS, RBAC and much more configurations. This chart caters a number of different use cases and setups. -- [Requirements](#requirements) -- [Installing](#installing) -- [Uninstalling](#uninstalling) -- [Configuration](#configuration) +- [OpenSearch Helm Chart](#opensearch-helm-chart) + - [Requirements](#requirements) + - [Installing](#installing) + - [Uninstalling](#uninstalling) + - [Configuration](#configuration) ## Requirements @@ -113,7 +114,7 @@ helm uninstall my-release | `startupProbe` | Configuration fields for the startup [probe][] | see [exampleStartup][] in `values.yaml` | | `plugins.enabled` | Allow/disallow to add 3rd Party / Custom plugins not offered in the default OpenSearchDashboards image | false | | `plugins.installList` | Array containing the Opensearch Dashboards plugins to be installed in container | [] | - +| `opensearchLifecycle` | Allows you to configure lifecycle hooks for the OpenSearch container in the StatefulSet | {} | [anti-affinity]: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity diff --git a/charts/opensearch/templates/statefulset.yaml b/charts/opensearch/templates/statefulset.yaml index 5d40ddcb..14eb4e6e 100644 --- a/charts/opensearch/templates/statefulset.yaml +++ b/charts/opensearch/templates/statefulset.yaml @@ -378,6 +378,10 @@ spec: {{- if .Values.envFrom }} envFrom: {{ toYaml .Values.envFrom | indent 8 }} +{{- end }} +{{- if .Values.opensearchLifecycle }} + lifecycle: +{{ toYaml .Values.opensearchLifecycle | indent 10 }} {{- end }} volumeMounts: {{- if .Values.persistence.enabled }} diff --git a/charts/opensearch/values.yaml b/charts/opensearch/values.yaml index 1587ffca..bceccb01 100644 --- a/charts/opensearch/values.yaml +++ b/charts/opensearch/values.yaml @@ -388,6 +388,14 @@ fullnameOverride: "" masterTerminationFix: false +opensearchLifecycle: {} + # preStop: + # exec: + # command: ["/bin/sh", "-c", "echo Hello from the preStart handler > /usr/share/message"] + # postStart: + # exec: + # command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"] + lifecycle: {} # preStop: # exec: