From f60dd78510bf97fb02d0c059a0cff937bf577812 Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Thu, 26 Aug 2021 11:57:07 +0800 Subject: [PATCH] fix!: update name of JAVA_OPTS variable ES_JAVA_OPTS has been renamed in Opensearch to OPENSEARCH_JAVA_OPTS. Signed-off-by: Scott Leggett --- charts/README.md | 4 ++-- charts/opensearch/templates/statefulset.yaml | 4 ++-- charts/opensearch/values.yaml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/README.md b/charts/README.md index 82b49a1c..88614917 100644 --- a/charts/README.md +++ b/charts/README.md @@ -22,8 +22,8 @@ This chart is tested with the latest 1.0.0-rc1 version. * The chart deploys a StatefulSet and by default will do an automated rolling update of your cluster. It does this by waiting for the cluster health to become green after each instance is updated. -* It is important to verify that the JVM heap size in `esJavaOpts` and to set - the CPU/Memory `resources` to something suitable for your cluster. +* It is important to verify that the JVM heap size in `opensearchJavaOpts` and + to set the CPU/Memory `resources` to something suitable for your cluster. * To simplify chart and maintenance each set of node groups is deployed as a separate Helm release. Without doing this it isn't possible to resize persistent volumes in a StatefulSet. By setting it up this way it makes it possible to add diff --git a/charts/opensearch/templates/statefulset.yaml b/charts/opensearch/templates/statefulset.yaml index 1353b1fd..107f8b88 100644 --- a/charts/opensearch/templates/statefulset.yaml +++ b/charts/opensearch/templates/statefulset.yaml @@ -299,8 +299,8 @@ spec: value: "{{ .Values.clusterName }}" - name: network.host value: "{{ .Values.networkHost }}" - - name: ES_JAVA_OPTS - value: "{{ .Values.esJavaOpts }}" + - name: OPENSEARCH_JAVA_OPTS + value: "{{ .Values.opensearchJavaOpts }}" {{- range $role, $enabled := .Values.roles }} - name: node.{{ $role }} value: "{{ $enabled }}" diff --git a/charts/opensearch/values.yaml b/charts/opensearch/values.yaml index 2f7dd509..5c5840b3 100755 --- a/charts/opensearch/values.yaml +++ b/charts/opensearch/values.yaml @@ -115,7 +115,7 @@ podAnnotations: {} # additionals labels labels: {} -esJavaOpts: "-Xmx512M -Xms512M" +opensearchJavaOpts: "-Xmx512M -Xms512M" resources: requests: