Skip to content

Commit a4c2c9e

Browse files
committed
chore: improved validate ci
1 parent 181f967 commit a4c2c9e

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/validate.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ jobs:
3030
run: docker build -t ext-cardano-dbsync:1.0 .
3131

3232
- name: Load Image into Kind
33-
run: |
34-
docker images
35-
kind load docker-image ext-cardano-dbsync:1.0 --name k8scluster
33+
run: kind load docker-image ext-cardano-dbsync:1.0 --name k8scluster
3634

3735
- name: Apply manifests
3836
run: |
@@ -41,4 +39,9 @@ jobs:
4139
4240
- name: Validate if CRD is working
4341
run: |
44-
counter=0; while ((counter++ < 5)); do kubectl get pod -n project; sleep 2; done;
42+
counter=0; while ((counter++ < 5)); do
43+
kubectl describe dbsyncports.demeter.run --namespace project useraccess | grep -oP 'Password: \K\S+';
44+
kubectl describe dbsyncports.demeter.run --namespace project useraccess | grep -oP 'Username: \K\S+';
45+
kubectl describe dbsyncports.demeter.run --namespace project;
46+
sleep 2;
47+
done;

test/manifest.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,14 @@ metadata:
4545
labels:
4646
app: postgres
4747
spec:
48-
ports:
49-
- port: 5432
5048
selector:
5149
app: postgres
52-
clusterIP: None
50+
type: NodePort
51+
ports:
52+
- name: postgres
53+
port: 5432
54+
targetPort: 5432
55+
nodePort: 30000
5356
---
5457
# Run controller
5558
apiVersion: apps/v1

0 commit comments

Comments
 (0)