File tree 1 file changed +4
-10
lines changed 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 41
41
- name : Apply manifests
42
42
run : kubectl apply -f test/dbsyncport.yaml
43
43
44
- - name : Validate if CRD is working
44
+ - name : Validate if controller was executed
45
45
run : |
46
- # kubectl describe dbsyncports.demeter.run --namespace project useraccess | grep -oP 'Username: \K\S+'
47
- # kubectl describe dbsyncports.demeter.run --namespace project useraccess | grep -oP 'Password: \K\S+'
48
- counter=0; while ((counter++ < 6)); do kubectl logs -n project "$(kubectl get pods -n project | grep -oP 'controller-\w+-\w+')"; sleep 2; done;
49
- kubectl describe dbsyncports.demeter.run --namespace project useraccess
50
-
51
- # - name: Collect controller status
52
- # run: |
53
- # kubectl describe dbsyncports.demeter.run --namespace project useraccess | grep -oP 'Password: \K\S+'
54
- # kubectl describe dbsyncports.demeter.run --namespace project useraccess | grep -oP 'Username: \K\S+'
46
+ username=$(kubectl describe dbsyncports.demeter.run --namespace project useraccess | grep -oP 'Username: \K\S+')
47
+ password=$(kubectl describe dbsyncports.demeter.run --namespace project useraccess | grep -oP 'Password: \K\S+')
48
+ if [ -z "$username" ] && [ -z "$password" ]; then echo "Error: controller not executed" && exit 1; fi
You can’t perform that action at this time.
0 commit comments