Skip to content

Commit 14a2e5a

Browse files
committed
[LIASCW-47]: reworked global overrides
1 parent 64205f6 commit 14a2e5a

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

README.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -1347,16 +1347,23 @@ ingress:
13471347
* Default: `true`
13481348
* Description: When enabled, and if the elastic index does not exist, it will be created automatically.
13491349

1350-
#### `global.elasticsearch.indexName`
1350+
#### `elastic.elasticsearch.indexName`
13511351

13521352
* Required: false
1353-
* Default: `"alfresco-{{ .Release.Namespace }}"`
1354-
* Description: This is a global setting for the indexname. The default name is dynamic, it is based on your namespace name.
1353+
* Default: `"alfresco-{{ .Release.Namespace }}`
1354+
* Description: This is the setting for the elastic index name. The default name is dynamic, it is based on your namespace name.
13551355
* This prevents potential issues when using a shared elastic environment.
1356+
> [!NOTE]
1357+
> The global value lobal.elasticsearch.indexName takes precedence when set.
13561358

1359+
#### `global.elasticsearch.indexName`
13571360

1358-
> [!WARNING]
1359-
> This is a global setting that other charts (or this one) picks up, double check other dependant charts when setting it.
1361+
* Required: false
1362+
* Default: `"alfresco-{{ .Release.Namespace }}"`
1363+
* Description: This is a global setting for the elastic index name. The default name is dynamic, it is based on your namespace name.
1364+
* This prevents potential issues when using a shared elastic environment.
1365+
> [!NOTE]
1366+
> This setting will take precedence over elastic.elasticsearch.indexName when set
13601367

13611368
### SOLR
13621369

xenit-alfresco/templates/acs/acs-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ data:
5252
GLOBAL_index.subsystem.name: "elasticsearch"
5353
GLOBAL_elasticsearch.host: {{ .Values.elastic.host | quote }}
5454
GLOBAL_elasticsearch.port: {{ .Values.elastic.port | quote }}
55-
GLOBAL_elasticsearch.indexName: {{ (((.Values.global).elasticsearch).indexName) | default (printf "alfresco-%s" .Release.Namespace ) | quote }}
55+
GLOBAL_elasticsearch.indexName: {{ coalesce (((.Values.global).elasticsearch).indexName) (((.Values.elastic).elasticsearch).indexName) (printf "alfresco-%s" .Release.Namespace ) | quote }}
5656
GLOBAL_elasticsearch.createIndexIfNotExists: {{ .Values.elastic.createIndexIfNotExists | quote }}
5757
{{- else }}
5858
GLOBAL_index.subsystem.name: "noindex"

0 commit comments

Comments
 (0)