Skip to content

Commit 12855a3

Browse files
Added missing security context to configfile and keystore init containers to support restricted Kubernetes environments (#698)
Signed-off-by: Peter Zhu <[email protected]> Co-authored-by: Venkata Shreyas K <[email protected]>
1 parent 620a938 commit 12855a3

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

charts/opensearch/CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Fixed
1515
### Security
1616
---
17+
## [2.35.1]
18+
### Added
19+
### Changed
20+
### Deprecated
21+
### Removed
22+
### Fixed
23+
- Added missing security context to configfile and keystore init containers to support restricted Kubernetes environments
24+
### Security
25+
---
1726
## [2.35.0]
1827
### Added
1928
- Updated OpenSearch appVersion to 2.19.3
@@ -611,7 +620,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
611620
### Fixed
612621
### Security
613622

614-
[Unreleased]: https://github.com/opensearch-project/helm-charts/compare/opensearch-2.35.0...HEAD
623+
[Unreleased]: https://github.com/opensearch-project/helm-charts/compare/opensearch-2.35.1...HEAD
624+
[2.35.1]: https://github.com/opensearch-project/helm-charts/compare/opensearch-2.35.0...opensearch-2.35.1
615625
[2.35.0]: https://github.com/opensearch-project/helm-charts/compare/opensearch-2.34.0...opensearch-2.35.0
616626
[2.34.0]: https://github.com/opensearch-project/helm-charts/compare/opensearch-2.33.0...opensearch-2.34.0
617627
[2.33.0]: https://github.com/opensearch-project/helm-charts/compare/opensearch-2.32.0...opensearch-2.33.0

charts/opensearch/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.35.0
18+
version: 2.35.1
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/templates/statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ spec:
292292
- |
293293
#!/usr/bin/env bash
294294
cp -r /tmp/configfolder/* /tmp/config/
295+
securityContext:
296+
{{ toYaml .Values.securityContext | indent 10 }}
295297
resources:
296298
{{- toYaml .Values.initResources | nindent 10 }}
297299
volumeMounts:
@@ -332,6 +334,8 @@ spec:
332334
cp -a {{ .Values.opensearchHome }}/config/opensearch.keystore /tmp/keystore/
333335
env: {{ toYaml .Values.extraEnvs | nindent 10 }}
334336
envFrom: {{ toYaml .Values.envFrom | nindent 10 }}
337+
securityContext:
338+
{{ toYaml .Values.securityContext | indent 10 }}
335339
resources:
336340
{{- toYaml .Values.initResources | nindent 10 }}
337341
volumeMounts:

0 commit comments

Comments
 (0)