Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade operator test #3

Merged
merged 39 commits into from
Dec 13, 2022
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
b2db5cc
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
6838eb7
Setup manual workflow in Github
allanrogerr Dec 12, 2022
3182f8f
Update kubernetes-tests.yml
allanrogerr Dec 12, 2022
cc4404d
Update kubernetes-tests.yml
allanrogerr Dec 12, 2022
52b7be3
Update helm.yaml
allanrogerr Dec 12, 2022
a30efe5
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
7c5cd4a
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
c5ab517
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
43edac2
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
ca37812
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
f13709e
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
430c6c2
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
535fe53
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
0ab5514
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
95a288a
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
cef40a6
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
152db99
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
138b892
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
8217a3f
Test operator upgrade from version x to version y
allanrogerr Dec 12, 2022
c1b6147
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
f77a986
Merge branch 'master' into upgrade_operator_test
allanrogerr Dec 13, 2022
00f6b66
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
3e9dd1d
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
1452f3f
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
eda1704
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
85d6bd4
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
d4fea31
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
eee2526
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
e647ea4
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
15e6008
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
88c91c8
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
5ad2549
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
c4f97da
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
5c751fd
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
bb2e16b
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
a7780f4
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
e3e705a
Merge branch 'master' into upgrade_operator_test
allanrogerr Dec 13, 2022
1b97c54
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
5320ed5
Test operator upgrade from version x to version y
allanrogerr Dec 13, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions testing/deploy-tenant-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,27 @@ dummy="dummy.data"
localport="9000"
alias="minios3"

# Announce test
function announce_test() {
local lower_text
local upper_text
if [ -n "$lower_version" ]
then
lower_text=$lower_version;
else
lower_text="latest Operator release";
fi

if [ -n "$upper_version" ]
then
upper_text=$upper_version;
else
upper_text="current branch of Operator";
fi

echo "## Testing upgrade of Operator from $lower_text to $upper_text ##"
}

# Port forward
function port_forward() {
totalwait=0
Expand All @@ -49,7 +70,7 @@ function port_forward() {
done

echo "Killing any current port-forward"
for pid in $(lsof -i :$localport | awk '{print $2}' | grep -o '\d*')
for pid in $(lsof -i :$localport | awk '{print $2}' | uniq | grep -o '[0-9]*')
do
if [ -n "$pid" ]
then
Expand All @@ -59,14 +80,15 @@ function port_forward() {
done

echo "Establishing port-forward"
kubectl port-forward service/$tenant-hl -n $namespace $localport:$localport &
kubectl port-forward service/$tenant-hl -n $namespace $localport &

echo 'start - wait for port-forward to be completed'
sleep 15
echo 'end - wait for port-forward to be completed'
}

# Preparing tenant for bucket manipulation
# shellcheck disable=SC2317
function bootstrap_tenant() {
port_forward

Expand Down Expand Up @@ -107,6 +129,8 @@ function download_dummy_data() {
}

function main() {
announce_test

destroy_kind

setup_kind
Expand Down