Merge pull request #27 from manno/bump-gb-frontend

Bump kubernetes-engines-sample guestbook to v5
This commit is contained in:
Mario Manno
2022-08-23 15:55:14 +02:00
committed by GitHub
3 changed files with 12 additions and 21 deletions

View File

@@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: php-redis
image: gcr.io/google-samples/gb-frontend:v4
image: gcr.io/google-samples/gb-frontend:v5
resources:
requests:
cpu: 100m

File diff suppressed because one or more lines are too long

View File

@@ -3,39 +3,30 @@ set -e
export COMMIT=fake
cd $(dirname $0)
cd "$(dirname "$0")"
rm -rf output
FLEET_PATH=fleet
if ! [ $(command -v fleet) ]; then
printf "Not found in PATH: fleet\n"
read -p "Specify path to fleet binary (leave blank to exit): " TEMP_FLEET_PATH
if ! [ $TEMP_FLEET_PATH ]; then
exit 0
fi
FLEET_PATH=$(realpath $TEMP_FLEET_PATH)
printf "Path to fleet binary: $FLEET_PATH\n"
fi
fleet -v
for fixture in ./expected/single-cluster/*; do
case=${fixture#./expected/}
pushd ../$case
pushd "../$case"
for env in dev test prod; do
mkdir -p ../../tests/output/${case}
eval $FLEET_PATH test > ../../tests/output/${case}/${env}-output.yaml
eval $FLEET_PATH apply -o - test > ../../tests/output/${case}/bundle.yaml
mkdir -p ../../tests/output/"${case}"
fleet test > "../../tests/output/${case}/${env}-output.yaml"
fleet apply -o - test > "../../tests/output/${case}/bundle.yaml"
done
popd
done
for fixture in ./expected/multi-cluster/*; do
case=${fixture#./expected/}
pushd ../$case
pushd "../$case"
for env in dev test prod; do
mkdir -p ../../tests/output/${case}
eval $FLEET_PATH test -l env=${env} > ../../tests/output/${case}/${env}-output.yaml
eval $FLEET_PATH apply -n fleet-default -o - test > ../../tests/output/${case}/bundle.yaml
mkdir -p ../../tests/output/"${case}"
fleet test -l env="${env}" > "../../tests/output/${case}/${env}-output.yaml"
fleet apply -n fleet-default -o - test > "../../tests/output/${case}/bundle.yaml"
done
popd
done