Skip to content

Commit 28c904c

Browse files
committed
[Helm] Enabling some debugging.
1 parent 0b35638 commit 28c904c

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

helm-charts/nts-pool/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Create the name of the service account to use
6363

6464
{{- define "nts-pool.management-env" -}}
6565
- name: NTSPOOL_CONFIG_UPDATER_SECRET
66-
ValueFrom:
66+
valueFrom:
6767
secretKeyRef:
6868
{{- toYaml .Values.management.configUpdaterSecretRef | nindent 6 }}
6969
- name: NTSPOOL_DATABASE_URL

helm-charts/nts-pool/templates/cron-config-updater.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ metadata:
1010
data:
1111
config-updater.sh: |
1212
#!/bin/sh
13-
curl --fail -H "Authorization: Bearer ${AUTHTOKEN}" "${CONFIGURL}" |
14-
jq '{"op": "replace", "path": "/data/servers.json", "value": "\(.)"}' |
15-
curl --fail --cacert "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" \
16-
--data-binary @- -X PATCH -H "Content-Type: application/json-patch+json" \
17-
-H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \
18-
"https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}/api/v1/namespaces/${NAMESPACE}/configmaps/${CONFIGMAP}"
13+
curl -H "Authorization: Bearer ${AUTHTOKEN}" "${CONFIGURL}" -vv
14+
#jq '{"op": "replace", "path": "/data/servers.json", "value": "\(.)"}' |
15+
#curl --fail --cacert "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" \
16+
# --data-binary @- -X PATCH -H "Content-Type: application/json-patch+json" \
17+
# -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \
18+
# "https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}/api/v1/namespaces/${NAMESPACE}/configmaps/${CONFIGMAP}"
1919
---
2020
apiVersion: batch/v1
2121
kind: CronJob

helm-charts/nts-pool/templates/management.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,5 @@ spec:
100100
value: "false"
101101
- name: RESTART_BUMP
102102
value: "{{ default 1 .Values.management.restartBump}}"
103+
- name: RUST_LOG
104+
value: "trace"

0 commit comments

Comments
 (0)