File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
- /manifests
1
+ /manifests
2
+ /models
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ yarn --cwd tests/fixtures/domain-sdk compo
54
54
echo " Applying XRD and Compositions..."
55
55
kubectl apply -f tests/fixtures/domain-sdk/functions/xsimpleconfigmaps/xrd.yaml
56
56
kubectl apply -f tests/fixtures/domain-sdk/manifests/xsimpleconfigmaps.compo.yaml
57
- # kubectl apply -f tests/fixtures/domain-sdk/manifests
58
57
59
58
# Wait for XRD to be established
60
59
echo " Waiting for XRD to be established..."
@@ -65,6 +64,22 @@ kubectl wait --for=condition=established xrd/xsimpleconfigmaps.test.crossplane.i
65
64
exit 1
66
65
}
67
66
67
+ # Wait for the XSimpleConfigmap CRD to be established
68
+ echo " Waiting for XSimpleConfigmap CRD to be established..."
69
+ for i in {1..30}; do
70
+ if kubectl get crd xsimpleconfigmaps.test.crossplane.io & > /dev/null; then
71
+ echo " XSimpleConfigmap CRD is established!"
72
+ break
73
+ fi
74
+ echo " Waiting for XSimpleConfigmap CRD to be established... ($i /30)"
75
+ sleep 2
76
+ done
77
+
78
+ # Generate models from CRD
79
+ kubectl get crd xsimpleconfigmaps.test.crossplane.io -o yaml > tests/fixtures/domain-sdk/manifests/xsimpleconfigmaps.crd.yaml
80
+ yarn crd-generate --input tests/fixtures/domain-sdk/manifests/xsimpleconfigmaps.crd.yaml --output tests/fixtures/domain-sdk/models
81
+
82
+
68
83
# Create a test XSimpleConfigMap
69
84
echo " (Re)Creating test XSimpleConfigMap..."
70
85
kubectl delete -f tests/fixtures/domain-sdk/sample.yaml || true
You can’t perform that action at this time.
0 commit comments