Skip to content

Commit 76fa9e7

Browse files
committed
[Helm] Enabling some debugging.
1 parent 0b35638 commit 76fa9e7

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

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 --fail -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)