File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
helm-charts/nts-pool/templates Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1111 config-updater.sh : |
1212 #!/bin/sh
1313 curl --fail -H "Authorization: Bearer ${AUTHTOKEN}" "${CONFIGURL}" |
14- jq '{ "op": "replace", "path": "/data/servers.json ", "value": "\(.)"}' |
14+ jq "[{\ "op\ ": \ "replace\ ", \ "path\ ": \ "/data/${FILENAME}\ ", \ "value\ ": \ "\(.)\"}]" |
1515 curl --fail --cacert "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" \
1616 --data-binary @- -X PATCH -H "Content-Type: application/json-patch+json" \
1717 -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \
6868 value : " {{ default .Release.Namespace .Values.namespaceOverride }}"
6969 - name : CONFIGMAP
7070 value : " {{ include " nts-pool.fullname" . }}-servers-config"
71+ - name : FILENAME
72+ value : " servers.json"
7173 - name : ke-monitor-list-updater
7274 imagePullPolicy : " {{ default .Values.image.pullPolicy .Values.ke.image.pullPolicy }}"
7375 {{- with default .Values.image.pullSecrets .Values.ke.image.pullSecrets }}
9294 value : " {{ default .Release.Namespace .Values.namespaceOverride }}"
9395 - name : CONFIGMAP
9496 value : " {{ include " nts-pool.fullname" . }}-monitoring-config"
97+ - name : FILENAME
98+ value : " monitoring.json"
You can’t perform that action at this time.
0 commit comments