@@ -55,14 +55,15 @@ jobs:
55
55
- name : Checkout common repo code
56
56
uses : actions/checkout@v4
57
57
with :
58
- repository : ' project-codeflare /codeflare-common'
59
- ref : ' main '
58
+ repository : ' sutaakar /codeflare-common'
59
+ ref : ' kind '
60
60
path : ' common'
61
61
62
62
- name : Checkout CodeFlare operator repository
63
63
uses : actions/checkout@v4
64
64
with :
65
- repository : project-codeflare/codeflare-operator
65
+ repository : sutaakar/codeflare-operator
66
+ ref : ' kind'
66
67
path : codeflare-operator
67
68
68
69
- name : Set Go
75
76
with :
76
77
token : ${{ secrets.GITHUB_TOKEN }}
77
78
79
+ - name : Set up specific Python version
80
+ uses : actions/setup-python@v5
81
+ with :
82
+ python-version : ' 3.9'
83
+ cache : ' pip' # caching pip dependencies
84
+
78
85
- name : Setup and start KinD cluster
79
86
uses : ./common/github-actions/kind
80
87
@@ -113,6 +120,8 @@ jobs:
113
120
kubectl create clusterrolebinding sdk-user-clusterqueue-creator --clusterrole=clusterqueue-creator --user=sdk-user
114
121
kubectl create clusterrole localqueue-creator --verb=get,list,create,delete,patch --resource=localqueues
115
122
kubectl create clusterrolebinding sdk-user-localqueue-creator --clusterrole=localqueue-creator --user=sdk-user
123
+ kubectl create clusterrole list-secrets --verb=get,list --resource=secrets
124
+ kubectl create clusterrolebinding sdk-user-list-secrets --clusterrole=list-secrets --user=sdk-user
116
125
kubectl config use-context sdk-user
117
126
118
127
- name : Run e2e tests
@@ -125,11 +134,20 @@ jobs:
125
134
poetry install --with test,docs
126
135
echo "Running e2e tests..."
127
136
poetry run pytest -v -s ./tests/e2e -m kind > ${CODEFLARE_TEST_OUTPUT_DIR}/pytest_output.log 2>&1
137
+ env :
138
+ GRPC_DNS_RESOLVER : " native"
128
139
129
140
- name : Switch to kind-cluster context to print logs
130
141
if : always() && steps.deploy.outcome == 'success'
131
142
run : kubectl config use-context kind-cluster
132
143
144
+ - name : Print all
145
+ if : always()
146
+ run : |
147
+ kubectl get Ingress -A -o yaml
148
+ echo "******************"
149
+ kubectl get pods -n ingress-nginx -o yaml
150
+
133
151
- name : Print CodeFlare operator logs
134
152
if : always() && steps.deploy.outcome == 'success'
135
153
run : |
0 commit comments