Skip to content

fix: wrong indentation #803

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

Merged
merged 1 commit into from
Jan 8, 2022
Merged
Changes from all commits
Commits
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
106 changes: 53 additions & 53 deletions .github/workflows/e2e-test-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,65 +19,65 @@ jobs:
- name: clean resident local docker
if: ${{ env.ACT }}
continue-on-error: true
run: |
for DIMG in "$KIND_CL_NAME-control-plane "; do
docker stop $DIMG ; docker rm $DIMG ;
done ;
sleep 1
run: |
for DIMG in "$KIND_CL_NAME-control-plane "; do
docker stop $DIMG ; docker rm $DIMG ;
done ;
sleep 1

- name: Create Kubernetes KinD Cluster
uses: container-tools/kind-action@v1.7.0
with:
cluster_name: e2e-test
registry: false
- name: Create Kubernetes KinD Cluster
uses: container-tools/kind-action@v1.7.0
with:
cluster_name: e2e-test
registry: false

- name: Deploy MySQL DB
working-directory: sample-operators/mysql-schema
run: |
kubectl create namespace mysql
kubectl apply -f k8s/mysql-deployment.yaml
kubectl apply -f k8s/mysql-service.yaml
- name: Deploy MySQL DB
working-directory: sample-operators/mysql-schema
run: |
kubectl create namespace mysql
kubectl apply -f k8s/mysql-deployment.yaml
kubectl apply -f k8s/mysql-service.yaml

- name: Set up Java and Maven
uses: actions/setup-java@v2
with:
java-version: 11
distribution: adopt-hotspot
cache: 'maven'
- name: Set up Java and Maven
uses: actions/setup-java@v2
with:
java-version: 11
distribution: adopt-hotspot
cache: 'maven'

- name: Build SDK
run: mvn install -DskipTests
- name: Build SDK
run: mvn install -DskipTests

- name: build jib
working-directory: sample-operators/mysql-schema
run: |
mvn --version
mvn -B package jib:dockerBuild jib:buildTar -Djib-maven-image=mysql-schema-operator -DskipTests
kind load image-archive target/jib-image.tar --name=${{ env.KIND_CL_NAME }}
- name: build jib
working-directory: sample-operators/mysql-schema
run: |
mvn --version
mvn -B package jib:dockerBuild jib:buildTar -Djib-maven-image=mysql-schema-operator -DskipTests
kind load image-archive target/jib-image.tar --name=${{ env.KIND_CL_NAME }}

- name: Apply CRDs
working-directory: sample-operators/mysql-schema
run: |
kubectl apply -f target/classes/META-INF/fabric8/mysqlschemas.mysql.sample.javaoperatorsdk-v1.yml
- name: Apply CRDs
working-directory: sample-operators/mysql-schema
run: |
kubectl apply -f target/classes/META-INF/fabric8/mysqlschemas.mysql.sample.javaoperatorsdk-v1.yml

- name: Deploy MySQL Operator
working-directory: sample-operators/mysql-schema
run: |
kubectl apply -f k8s/operator.yaml
- name: Deploy MySQL Operator
working-directory: sample-operators/mysql-schema
run: |
kubectl apply -f k8s/operator.yaml

- name: Run E2E Tests
working-directory: sample-operators/mysql-schema
run: mvn -B test -P end-to-end-tests
- name: Run E2E Tests
working-directory: sample-operators/mysql-schema
run: mvn -B test -P end-to-end-tests

- name: Dump state
if: ${{ failure() }}
run: |
set +e
echo "All namespaces"
kubectl get ns
echo "All objects in mysql"
kubectl get all -n mysql-schema-test" -o yaml
echo "Output of mysql pod"
kubectl logs -l app=mysql-schema-operator -n mysql-schema
echo "All objects in mysql-schema-test"
kubectl get deployment,pod,tomcat,webapp -n mysql-schema-test" -o yaml
- name: Dump state
if: ${{ failure() }}
run: |
set +e
echo "All namespaces"
kubectl get ns
echo "All objects in mysql"
kubectl get all -n mysql-schema-test" -o yaml
echo "Output of mysql pod"
kubectl logs -l app=mysql-schema-operator -n mysql-schema
echo "All objects in mysql-schema-test"
kubectl get deployment,pod,tomcat,webapp -n mysql-schema-test" -o yaml