-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to demo marshaller and cleanup
- Loading branch information
Tom Batchelor
committed
Nov 5, 2019
1 parent
27f6cae
commit 339c2d2
Showing
9 changed files
with
53 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,30 @@ | ||
#!/bin/bash | ||
|
||
kubectl apply -f /"$NEW_YAML" -n $NAMESPACE | ||
if [ "$NEW_YAML" == "2_leak" ] | ||
then | ||
LEAK="-leak" | ||
SIZE=2 | ||
fi | ||
|
||
if [ "$NEW_YAML" == "4_leak" ] | ||
then | ||
LEAK="-leak" | ||
SIZE=4 | ||
fi | ||
|
||
if [ "$NEW_YAML" == "4_no_leak" ] | ||
then | ||
LEAK= | ||
SIZE=4 | ||
fi | ||
|
||
if [ "$NEW_YAML" == "2_no_leak" ] | ||
then | ||
LEAK="" | ||
SIZE=2 | ||
fi | ||
|
||
echo kubectl set image deployment/cars-deployment app-server=tombatchelor/cars:$VERSION$LEAK | ||
kubectl set image deployment/cars-deployment app-server=tombatchelor/cars:$VERSION$LEAK | ||
echo kubectl scale --replicas=$SIZE deployment/cars-deployment | ||
kubectl scale --replicas=$SIZE deployment/cars-deployment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.