Skip to content

Commit ed1b9c3

Browse files
committed
Add jq and fix typo in config updater
1 parent f62a7ff commit ed1b9c3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ RUN --mount=type=cache,target=/usr/local/cargo/git/db \
3131
# Setup the final actual runner image stage
3232
FROM debian:bookworm-slim AS runner
3333

34-
# Install CA certificates for the runner
34+
# Install system packages for the runner
3535
RUN apt update \
3636
&& apt install -y --no-install-recommends \
37-
ca-certificates curl \
37+
ca-certificates \
38+
curl \
39+
jq \
3840
&& rm -rf /var/lib/apt/lists/* /tmp/*
3941

4042
# Copy compiled binaries from the builder stage

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ data:
1414
jq '{"op": "replace", "path": "/data/servers.json", "value": "\(.)"}' |
1515
curl --fail --cacert "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" \
1616
--binary-data @- -X PATCH -H "Content-Type: application/json-patch+json" \
17-
-H "Authentication: Bearer $(cat /var/run/secrets/kubernets.io/serviceaccount/token)" \
17+
-H "Authentication: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \
1818
"https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}/api/v1/namespaces/${NAMESPACE}/configmaps/${CONFIGMAP}"
1919
---
2020
apiVersion: batch/v1

0 commit comments

Comments
 (0)