Skip to content

Commit b9b7995

Browse files
authored
Fix node.roles environment variable (opensearch-project#137)
* Fix node.roles environment variable * forgotten version bump
1 parent cb6f619 commit b9b7995

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

charts/opensearch/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
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+
## [1.4.2]
17+
### Added
18+
### Changed
19+
### Deprecated
20+
### Removed
21+
### Fixed
22+
- `node.roles` environment variable
23+
### Security
24+
---
1625
## [1.4.1]
1726
### Added
1827
### Changed

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: 1.4.1
18+
version: 1.4.2
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: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,8 @@ spec:
315315
value: "{{ .Values.networkHost }}"
316316
- name: OPENSEARCH_JAVA_OPTS
317317
value: "{{ .Values.opensearchJavaOpts }}"
318-
{{- range $role, $enabled := .Values.roles }}
319-
- name: node.{{ $role }}
320-
value: "{{ $enabled }}"
321-
{{- end }}
318+
- name: node.roles
319+
value: "{{ template "opensearch.roles" . }}"
322320
{{- if .Values.extraEnvs }}
323321
{{ toYaml .Values.extraEnvs | indent 8 }}
324322
{{- end }}

charts/opensearch/values.yaml

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ nodeGroup: "master"
77
masterService: "opensearch-cluster-master"
88

99
# OpenSearch roles that will be applied to this nodeGroup
10-
# These will be set as environment variables. E.g. node.master=true
10+
# These will be set as environment variable "node.roles". E.g. node.roles=master,ingest,data,remote_cluster_client
1111
roles:
1212
- master
1313
- ingest

0 commit comments

Comments
 (0)