-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
551 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: e2e-test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'main' | ||
# workflow_run: | ||
# workflows: | ||
# - "build-and-push" | ||
# types: | ||
# - "completed" | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# - name: Create kind cluster | ||
# uses: helm/[email protected] | ||
|
||
- name: Setup Minikube | ||
uses: manusa/[email protected] | ||
with: | ||
minikube version: 'v1.26.1' | ||
kubernetes version: 'v1.25.0' | ||
github token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: set up tmate session for debugging | ||
uses: mxschmitt/action-tmate@v3 | ||
timeout-minutes: 60 | ||
|
||
- name: df1 | ||
run: df -h | ||
|
||
- name: use local disk | ||
run: tests/scripts/github-action-helper.sh use_local_disk_for_integration_test | ||
|
||
- name: df2 | ||
run: df -h | ||
|
||
- name: Delply rook ceph | ||
run: | | ||
git clone --single-branch --branch v1.10.1 https://github.com/rook/rook.git | ||
kubectl apply -f rook/deploy/examples/crds.yaml | ||
kubectl apply -f rook/deploy/examples/common.yaml | ||
kubectl apply -f rook/deploy/examples/operator.yaml | ||
kubectl apply -f rook/deploy/examples/cluster-test.yaml | ||
- name: Create k8s namespace for openstack | ||
run: | ||
kubectl create namespace openstack | ||
|
||
- name: Add kungze helm repository | ||
run: | ||
helm repo add kungze https://charts.kungze.net | ||
|
||
- name: Install openstack | ||
run: | | ||
helm install openstack-password kungze/password --namespace openstack | ||
helm install openstack-dependency kungze/openstack-dep --namespace openstack --wait --timeout 2400s | ||
helm install openstack-keystone kungze/keystone --namespace openstack --wait --timeout 2400s | ||
helm install openstack-glance kungze/glance --namespace openstack --wait --timeout 2400s | ||
helm install openstack-cinder kungze/cinder --set lvm.loop_device_size=10240 --namespace openstack --wait --timeout 2400s | ||
- name: df3 | ||
run: df -h | ||
|
||
- name: Create openstack user for cinder-metal-cis | ||
run: | | ||
sudo apt install python3-openstackclient -y | ||
export OS_USERNAME=$(kubectl get secret -n openstack openstack-keystone -o jsonpath="{.data.OS_USERNAME}" | base64 --decode) | ||
export OS_PROJECT_DOMAIN_NAME=$(kubectl get secret -n openstack openstack-keystone -o jsonpath="{.data.OS_PROJECT_DOMAIN_NAME}" | base64 --decode) | ||
export OS_USER_DOMAIN_NAME=$(kubectl get secret -n openstack openstack-keystone -o jsonpath="{.data.OS_USER_DOMAIN_NAME}" | base64 --decode) | ||
export OS_PROJECT_NAME=$(kubectl get secret -n openstack openstack-keystone -o jsonpath="{.data.OS_PROJECT_NAME}" | base64 --decode) | ||
export OS_REGION_NAME=$(kubectl get secret -n openstack openstack-keystone -o jsonpath="{.data.OS_REGION_NAME}" | base64 --decode) | ||
export OS_PASSWORD=$(kubectl get secrets -n openstack openstack-password -o jsonpath="{.data.keystone-admin-password}" | base64 --decode) | ||
export OS_AUTH_URL=$(kubectl get secret -n openstack openstack-keystone -o jsonpath="{.data.OS_CLUSTER_URL}" | base64 --decode) | ||
export OS_INTERFACE=internal | ||
openstack project create kubernetes | ||
openstack user create --project kubernetes --password ChangeMe kubernetes | ||
openstack role add --project kubernetes --user kubernetes member | ||
shell: bash |
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.