k8s-deployment/scripts/post_render_apply_log.sh

12 lines
268 B
Bash
Raw Permalink Normal View History

2024-12-16 13:55:35 +00:00
#!/bin/bash
WORKDIR=$(mktemp -d)
cat <&0 > "${WORKDIR}/result.yaml"
echo "---" >> "${WORKDIR}/result.yaml"
kubectl create configmap --dry-run=client "${1}-apply-log" -o yaml --from-literal author="${USER}" >> "${WORKDIR}/result.yaml"
cat "${WORKDIR}/result.yaml"