Skip to content

Commit 16b986f

Browse files
authored
Merge pull request apache#133 from theopenlab/refactor-e2e
Some refactor for cloud-provider-openstack-acceptance-test-e2e-conformance
2 parents f1814cb + 84a69aa commit 16b986f

File tree

3 files changed

+7
-31
lines changed

3 files changed

+7
-31
lines changed

playbooks/cloud-provider-openstack-acceptance-test-e2e-conformance/post.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

playbooks/cloud-provider-openstack-acceptance-test-e2e-conformance/run.yaml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
1-
- hosts: all
1+
- name: Run Kubernetes E2E conformance tests with cloud-provider-openstack
2+
hosts: all
3+
roles:
4+
- export-vexxhost-openrc
25
become: yes
36
tasks:
47
- shell:
58
cmd: |
6-
# use echo to delete extra spaces
7-
export OS_AUTH_TYPE=$(echo '{{ vexxhost_credentials.auth_type }}')
8-
export OS_IDENTITY_API_VERSION=$(echo '{{ vexxhost_credentials.identity_api_version }}')
9-
export OS_VOLUME_API_VERSION=$(echo '{{ vexxhost_credentials.volume_api_version }}')
10-
export OS_INTERFACE=$(echo '{{ vexxhost_credentials.interface }}')
11-
export OS_AUTH_URL=$(echo '{{ vexxhost_credentials.auth_url }}')
12-
export OS_PROJECT_ID=$(echo '{{ vexxhost_credentials.project_id }}')
13-
export OS_PROJECT_NAME=$(echo '{{ vexxhost_credentials.project_name }}')
14-
export OS_USER_DOMAIN_NAME=$(echo '{{ vexxhost_credentials.user_domain_name }}')
15-
export OS_PROJECT_DOMAIN_ID=$(echo '{{ vexxhost_credentials.project_domain_id }}')
16-
export OS_USERNAME=$(echo '{{ vexxhost_credentials.username }}')
17-
export OS_PASSWORD=$(echo '{{ vexxhost_credentials.password }}')
18-
export OS_REGION_NAME=$(echo '{{ vexxhost_credentials.region_name }}')
19-
209
set -x
2110
set -e
2211
set -o pipefail
@@ -45,7 +34,8 @@
4534
export ENABLE_CRI=false
4635
export ENABLE_HOSTPATH_PROVISIONER=true
4736
export ENABLE_SINGLE_CA_SIGNER=true
48-
export KUBE_ENABLE_CLUSTER_DNS=false
37+
# Cluster DNS should be enabled in E2E conformance test
38+
export KUBE_ENABLE_CLUSTER_DNS=true
4939
export LOG_LEVEL=4
5040
# We want to use the openstack cloud provider
5141
export CLOUD_PROVIDER=openstack
@@ -120,4 +110,4 @@
120110
--timeout=120m
121111
executable: /bin/bash
122112
chdir: '{{ zuul.project.src_dir }}'
123-
environment: '{{ golang_env }}'
113+
environment: '{{ golang_env | combine(vexxhost_openrc) }}'

zuul.d/jobs.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@
276276
description: |
277277
Run Kubernetes Conformance tests
278278
run: playbooks/cloud-provider-openstack-acceptance-test-e2e-conformance/run.yaml
279-
post-run: playbooks/cloud-provider-openstack-acceptance-test-e2e-conformance/post.yaml
280279
secrets:
281280
- vexxhost_credentials
282281

0 commit comments

Comments
 (0)