initial commit
This commit is contained in:
15
deploy.sh
Normal file
15
deploy.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
for namespace in namespaces/*; do
|
||||
if [ "$DRY_RUN" = true ]; then
|
||||
printf "\033[1;33m*******************************************************\n"
|
||||
printf "Dry running changes to %s\n" "$(basename "$namespace")"
|
||||
printf "*******************************************************\033[0m\n"
|
||||
kubectl apply -f "$namespace" --dry-run=server
|
||||
else
|
||||
printf "\033[1;33m*******************************************************\n"
|
||||
printf "Deploying changes to %s\n" "$(basename "$namespace")"
|
||||
printf "*******************************************************\033[0m\n"
|
||||
kubectl apply -f "$namespace"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user