Allow least privilege CI context during deploy
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||
[[ $(kubectl config current-context) == kubernetes-admin@kubernetes ]] || { echo 'Wrong Kubernetes context' >&2; exit 1; }
|
||||
./test.sh
|
||||
apply_output=$(kubectl apply -f app.yaml)
|
||||
printf '%s\n' "$apply_output"
|
||||
|
||||
Reference in New Issue
Block a user