Skip to content

Commit

Permalink
fix: update configMaps for network node config files to use filename …
Browse files Browse the repository at this point in the history
…instead of removing the dot (#865)

Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
  • Loading branch information
jeromy-cannon authored Jun 3, 2024
1 parent f42f5f8 commit eb78797
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ metadata:
{{- include "fullstack.testLabels" $ | nindent 4 }}
data:
{{- if $.Values.hedera.configMaps.apiPermissionsProperties }}
api-permission.properties: |
{{ .Values.hedera.configMaps.apiPermissionsProperties | nindent 4 }}
api-permission.properties: {{ toYaml .Values.hedera.configMaps.apiPermissionsProperties | indent 4 }}
{{- end }}
{{- if $.Values.hedera.configMaps.applicationProperties }}
application.properties: |
{{ .Values.hedera.configMaps.applicationProperties | nindent 4 }}
application.properties: {{ toYaml .Values.hedera.configMaps.applicationProperties | indent 4 }}
{{- end }}
{{- if $.Values.hedera.configMaps.bootstrapProperties }}
bootstrap.properties: |
{{ .Values.hedera.configMaps.bootstrapProperties | nindent 4 }}
bootstrap.properties: {{ toYaml .Values.hedera.configMaps.bootstrapProperties | indent 4 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
labels:
{{- include "fullstack.testLabels" $ | nindent 4 }}
data:
applicationEnv: |
{{ .Values.hedera.configMaps.applicationEnv | nindent 4 }}
{{- if $.Values.hedera.configMaps.applicationEnv }}
application.env: {{ toYaml .Values.hedera.configMaps.applicationEnv | indent 4 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ metadata:
{{- include "fullstack.testLabels" $ | nindent 4 }}
data:
{{- if $.Values.hedera.configMaps.configTxt }}
configTxt: |
{{ .Values.hedera.configMaps.configTxt | nindent 4 }}
config.txt: {{ toYaml .Values.hedera.configMaps.configTxt | indent 4 }}
{{- end }}
{{- if $.Values.hedera.configMaps.log4j2Xml }}
log4j2Xml: |
{{ .Values.hedera.configMaps.log4j2Xml | indent 4 }}
log4j2.xml: {{ toYaml .Values.hedera.configMaps.log4j2Xml | indent 4 }}
{{- end }}
{{- if $.Values.hedera.configMaps.settingsTxt }}
settingsTxt: |
{{ .Values.hedera.configMaps.settingsTxt | nindent 4 }}
settings.txt: {{ toYaml .Values.hedera.configMaps.settingsTxt | indent 4 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ spec:
name: network-node-etc-cm
optional: true
items:
- key: applicationEnv
- key: application.env
path: application.env
- name: network-node-hapi-app-config-txt
configMap:
name: network-node-hapi-app-cm
optional: true
items:
- key: configTxt
- key: config.txt
path: config.txt
{{- if $hapiAppSecrets }}
- name: network-node-hapi-app-hedera-crt
Expand All @@ -123,14 +123,14 @@ spec:
name: network-node-hapi-app-cm
optional: true
items:
- key: log4j2Xml
- key: log4j2.xml
path: log4j2.xml
- name: network-node-hapi-app-settings-txt
configMap:
name: network-node-hapi-app-cm
optional: true
items:
- key: settingsTxt
- key: settings.txt
path: settings.txt
{{- if $networkNodeKeySecrets }}
- name: network-node-keys
Expand Down

0 comments on commit eb78797

Please sign in to comment.