Skip to content

Commit b782a4a

Browse files
sutaakaropenshift-merge-bot[bot]
authored andcommittedMay 21, 2024·
Use native gRPC resolver in PR check for local interactive
This resolver is compatible with dnsmasq used for dynamic hostnames in KinD.
1 parent 890975e commit b782a4a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎.github/workflows/e2e_tests.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ jobs:
7676
with:
7777
token: ${{ secrets.GITHUB_TOKEN }}
7878

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+
7985
- name: Setup and start KinD cluster
8086
uses: ./common/github-actions/kind
8187

@@ -114,6 +120,8 @@ jobs:
114120
kubectl create clusterrolebinding sdk-user-clusterqueue-creator --clusterrole=clusterqueue-creator --user=sdk-user
115121
kubectl create clusterrole localqueue-creator --verb=get,list,create,delete,patch --resource=localqueues
116122
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
117125
kubectl config use-context sdk-user
118126
119127
- name: Run e2e tests
@@ -126,6 +134,8 @@ jobs:
126134
poetry install --with test,docs
127135
echo "Running e2e tests..."
128136
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"
129139

130140
- name: Switch to kind-cluster context to print logs
131141
if: always() && steps.deploy.outcome == 'success'

0 commit comments

Comments
 (0)
Please sign in to comment.