12 lines
268 B
Bash
Executable File
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"
|
|
|