comms: add debug logging for signing key job
This commit is contained in:
parent
47f0d1736e
commit
fa8ec588a8
@ -2,7 +2,7 @@
|
|||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
name: othrys-synapse-signingkey-ensure-2
|
name: othrys-synapse-signingkey-ensure-3
|
||||||
namespace: comms
|
namespace: comms
|
||||||
spec:
|
spec:
|
||||||
backoffLimit: 2
|
backoffLimit: 2
|
||||||
@ -36,10 +36,12 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
set -x
|
||||||
if kubectl -n comms get secret othrys-synapse-signingkey \
|
if kubectl -n comms get secret othrys-synapse-signingkey \
|
||||||
-o jsonpath='{.data.signing\.key}' 2>/dev/null | grep -q .; then
|
-o jsonpath='{.data.signing\.key}' 2>/tmp/get_err | grep -q .; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
cat /tmp/get_err >&2 || true
|
||||||
kubectl -n comms create secret generic othrys-synapse-signingkey \
|
kubectl -n comms create secret generic othrys-synapse-signingkey \
|
||||||
--from-file=signing.key=/work/signing.key \
|
--from-file=signing.key=/work/signing.key \
|
||||||
--dry-run=client -o yaml | kubectl -n comms apply -f - >/dev/null
|
--dry-run=client -o yaml | kubectl -n comms apply -f - >/dev/null
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user