Skip to content

Instantly share code, notes, and snippets.

@manno
Last active February 9, 2021 12:12
Show Gist options
  • Save manno/eee6989283c3e15b89d5b7f5c0c5dde6 to your computer and use it in GitHub Desktop.
Save manno/eee6989283c3e15b89d5b7f5c0c5dde6 to your computer and use it in GitHub Desktop.
#!/bin/bash
dump() {
dir="$1"
read -N 1 -s -p "press any key to dump env '$dir' "
echo
#~/co/quarks-meta/quarks-operator/testing/dump_env.sh kubecf
#mv /tmp/env_dumps/kubecf "$dir"
#./logs.sh "$dir"
#./manifests.sh "$dir"
}
set -e
##############################################
echo "install cfo"
kubectl create namespace cf-operator
helm install cf-operator suse/cf-operator \
--namespace cf-operator \
--set "global.singleNamespace.name=kubecf" \
--wait \
--version 6.1.17+0.gec409fd7
echo "install kubecf"
helm install kubecf suse/kubecf \
--namespace kubecf \
--values kubecf-config-values.yaml \
--version 2.5.8
time dump base
##############################################
echo "update quarks in 30"
sleep 30
helm upgrade cf-operator suse/cf-operator \
--namespace cf-operator \
--set "global.singleNamespace.name=kubecf" \
--version 7.1.3-rc2+0.g0ce050b --devel
helm list -n cf-operator
dump updated
date=$(date +%s)
mkdir "$date"
mv -f base updated "$date"
##############################################
echo "update kubecf in 30"
sleep 30
echo "install kubecf"
helm upgrade kubecf suse/kubecf \
--namespace kubecf \
--values kubecf-config-values.yaml \
--version 2.7.12-rc2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment