-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial e2e test for mariadb operator
This commit adds a new test step to install mariadb operator and execute a basic test. It adds a new workflow for mariadb-operator to be used on a e2e test. It also adds a new pre-submit test that claims a SNO cluster from vexxhost cloud, managed by Hive operator.
- Loading branch information
Showing
10 changed files
with
222 additions
and
0 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 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
approvers: | ||
- abays | ||
- dprince | ||
- olliewalsh | ||
- Sandeepyadav93 | ||
- stuggi | ||
- viroel | ||
options: {} | ||
reviewers: | ||
- abays | ||
- dprince | ||
- olliewalsh | ||
- Sandeepyadav93 | ||
- stuggi | ||
- viroel |
15 changes: 15 additions & 0 deletions
15
ci-operator/step-registry/openstack-k8s-operators/mariadb/OWNERS
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
approvers: | ||
- abays | ||
- dprince | ||
- olliewalsh | ||
- Sandeepyadav93 | ||
- stuggi | ||
- viroel | ||
options: {} | ||
reviewers: | ||
- abays | ||
- dprince | ||
- olliewalsh | ||
- Sandeepyadav93 | ||
- stuggi | ||
- viroel |
15 changes: 15 additions & 0 deletions
15
ci-operator/step-registry/openstack-k8s-operators/mariadb/e2e/OWNERS
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
approvers: | ||
- abays | ||
- dprince | ||
- olliewalsh | ||
- Sandeepyadav93 | ||
- stuggi | ||
- viroel | ||
options: {} | ||
reviewers: | ||
- abays | ||
- dprince | ||
- olliewalsh | ||
- Sandeepyadav93 | ||
- stuggi | ||
- viroel |
33 changes: 33 additions & 0 deletions
33
...istry/openstack-k8s-operators/mariadb/e2e/openstack-k8s-operators-mariadb-e2e-commands.sh
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
cd $HOME | ||
# Setting up kustomize, needed by install_yamls makefile | ||
mkdir bin | ||
export PATH=$PATH:$HOME/bin | ||
cd $HOME/bin | ||
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash | ||
cd $HOME | ||
# Get install_yamls | ||
rm -rf install_yamls | ||
git clone https://github.com/openstack-k8s-operators/install_yamls.git | ||
cd $HOME/install_yamls | ||
# Sets namespace to 'openstack' | ||
export NAMESPACE=openstack | ||
# Creates namespace | ||
make namespace | ||
sleep 5 | ||
# Creates storage needed for mariadb | ||
make crc_storage | ||
sleep 20 | ||
# Deploy mariadb operator | ||
make mariadb | ||
sleep 120 | ||
# Deploy mariadb service | ||
make mariadb_deploy | ||
sleep 120 | ||
# Get all resources | ||
oc get all | ||
# Show mariadb databases | ||
oc exec -it pod/mariadb-openstack -- mysql -uroot -p12345678 -e "show databases;" |
21 changes: 21 additions & 0 deletions
21
...openstack-k8s-operators/mariadb/e2e/openstack-k8s-operators-mariadb-e2e-ref.metadata.json
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"path": "openstack-k8s-operators/mariadb/e2e/openstack-k8s-operators-mariadb-e2e-ref.yaml", | ||
"owners": { | ||
"approvers": [ | ||
"abays", | ||
"dprince", | ||
"olliewalsh", | ||
"Sandeepyadav93", | ||
"stuggi", | ||
"viroel" | ||
], | ||
"reviewers": [ | ||
"abays", | ||
"dprince", | ||
"olliewalsh", | ||
"Sandeepyadav93", | ||
"stuggi", | ||
"viroel" | ||
] | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...registry/openstack-k8s-operators/mariadb/e2e/openstack-k8s-operators-mariadb-e2e-ref.yaml
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ref: | ||
as: openstack-k8s-operators-mariadb-e2e | ||
from: openstack-installer | ||
commands: openstack-k8s-operators-mariadb-e2e-commands.sh | ||
resources: | ||
requests: | ||
cpu: 1000m | ||
memory: 100Mi | ||
documentation: |- | ||
This is a test step to install mariadb operator and do some basic tests. |
21 changes: 21 additions & 0 deletions
21
...tack-k8s-operators/mariadb/e2e/openstack-k8s-operators-mariadb-e2e-workflow.metadata.json
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"path": "openstack-k8s-operators/mariadb/e2e/openstack-k8s-operators-mariadb-e2e-workflow.yaml", | ||
"owners": { | ||
"approvers": [ | ||
"abays", | ||
"dprince", | ||
"olliewalsh", | ||
"Sandeepyadav93", | ||
"stuggi", | ||
"viroel" | ||
], | ||
"reviewers": [ | ||
"abays", | ||
"dprince", | ||
"olliewalsh", | ||
"Sandeepyadav93", | ||
"stuggi", | ||
"viroel" | ||
] | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...try/openstack-k8s-operators/mariadb/e2e/openstack-k8s-operators-mariadb-e2e-workflow.yaml
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
workflow: | ||
as: openstack-k8s-operators-mariadb-e2e | ||
steps: | ||
pre: | ||
- ref: ipi-install-rbac | ||
test: | ||
- ref: openstack-k8s-operators-mariadb-e2e | ||
documentation: |- | ||
Test mariadb operator deployment. |