Merge pull request #46 from HideyoshiNakazone/implements-refresh-images
Refreshes Images in Case of New Image
This commit is contained in:
@@ -111,6 +111,9 @@ function main() {
|
||||
|
||||
fi
|
||||
|
||||
# Refreshes all pods in case of a new image
|
||||
bash ./refresh.sh
|
||||
|
||||
exit 0
|
||||
|
||||
}
|
||||
|
||||
19
refresh.sh
Executable file
19
refresh.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
NAMESPACES=(
|
||||
portfolio
|
||||
)
|
||||
|
||||
DEPLOYMENTS=(
|
||||
"frontend-deployment"
|
||||
"backend-deployment"
|
||||
"storage-deployment"
|
||||
"storage-processor-deployment"
|
||||
)
|
||||
|
||||
for i in "${NAMESPACES[@]}"; do
|
||||
for x in "${DEPLOYMENTS[@]}"; do
|
||||
PODS=$(kubectl -n $i get pods --no-headers | awk '{print $1}' | grep $x | tr '\n' ' ')
|
||||
kubectl -n $i delete pods $PODS
|
||||
done
|
||||
done
|
||||
Reference in New Issue
Block a user