diff --git a/CHANGELOG.md b/CHANGELOG.md index d6dc29884c..0e43afca42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ ### Fixed Bugs +- [PR #452](https://github.com/konpyutaika/nifikop/pull/452) - **[Helm Chart]** Fixed a bug in the nifi-cluster helm chart where the cluster.logbackConfig.replaceConfigMap couldn't be set + ### Deprecated ### Removed diff --git a/helm/nifi-cluster/templates/nifi-cluster.yaml b/helm/nifi-cluster/templates/nifi-cluster.yaml index 1cf9d6fe7a..4c91241510 100644 --- a/helm/nifi-cluster/templates/nifi-cluster.yaml +++ b/helm/nifi-cluster/templates/nifi-cluster.yaml @@ -93,6 +93,11 @@ spec: data: {{ .Values.cluster.logbackConfig.replaceSecretConfig.data }} name: {{ .Values.cluster.logbackConfig.replaceSecretConfig.name }} namespace: {{ .Values.cluster.logbackConfig.replaceSecretConfig.namespace }} + {{- else if .Values.cluster.logbackConfig.replaceConfigMap }} + replaceConfigMap: + data: {{ .Values.cluster.logbackConfig.replaceConfigMap.data }} + name: {{ .Values.cluster.logbackConfig.replaceConfigMap.name }} + namespace: {{ .Values.cluster.logbackConfig.replaceConfigMap.namespace }} {{- else }} # the default replaceSecretConfig: @@ -100,12 +105,6 @@ spec: name: {{ include "nifi-cluster.fullname" . }} namespace: {{ .Release.Namespace }} {{- end }} - {{- if .Values.cluster.logbackConfig.replaceConfigMap }} - replaceConfigMap: - data: {{ .Values.cluster.logbackConfig.replaceConfigMap.data }} - name: {{ .Values.cluster.logbackConfig.replaceConfigMap.name }} - namespace: {{ .Values.cluster.logbackConfig.replaceConfigMap.namespace }} - {{- end }} nifiProperties: overrideSecretConfig: data: nifi.properties @@ -148,4 +147,4 @@ spec: listenersConfig: {{- toYaml .Values.cluster.listenersConfig | nindent 4 }} externalServices: - {{- toYaml .Values.cluster.externalServices | nindent 4 }} \ No newline at end of file + {{- toYaml .Values.cluster.externalServices | nindent 4 }}