k8s-deployment/scripts/post_render_apply_log.sh
2024-12-16 14:55:35 +01:00

12 lines
268 B
Bash
Executable File

#!/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"