13 lines
445 B
Bash
Executable File
13 lines
445 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
repo_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
|
|
|
kubectl --namespace default create secret generic 30-birthday-invitation \
|
|
--from-file="Einladung.pdf=${repo_root}/Einladung.pdf" \
|
|
--from-file="einladung.jpg=${repo_root}/private-assets/einladung.jpg" \
|
|
--dry-run=client \
|
|
--output=yaml \
|
|
| kubectl apply --server-side --field-manager=30-birthday-secret-bootstrap --filename=-
|