Skip to content

Commit fc0a458

Browse files
authored
Merge pull request kubernetes-sigs#634 from chewong/patch-ci-entrypoint
πŸƒ remove unused ci script and rename templates
2 parents b6738e6 + e5e73b5 commit fc0a458

File tree

8 files changed

+11
-174
lines changed

8 files changed

+11
-174
lines changed

β€Žscripts/ci-conformance.shβ€Ž

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

β€Žscripts/ci-entrypoint.shβ€Ž

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ create_cluster() {
7575
else
7676
CI_VERSION_URL="https://dl.k8s.io/ci/k8s-master.txt"
7777
fi
78-
export CLUSTER_TEMPLATE="test/cluster-template-conformance-ci-version.yaml"
78+
export CLUSTER_TEMPLATE="test/cluster-template-prow-ci-version.yaml"
7979
export CI_VERSION="${CI_VERSION:-$(curl -sSL ${CI_VERSION_URL})}"
8080
export KUBERNETES_VERSION="${CI_VERSION}"
8181
else
82-
export CLUSTER_TEMPLATE="test/cluster-template-conformance.yaml"
82+
export CLUSTER_TEMPLATE="test/cluster-template-prow.yaml"
8383
fi
8484

8585
export CLUSTER_NAME="capz-$(head /dev/urandom | LC_ALL=C tr -dc a-z0-9 | head -c 6 ; echo '')"
@@ -94,8 +94,6 @@ create_cluster() {
9494
}
9595

9696
run_upstream_e2e_tests() {
97-
# export the target cluster KUBECONFIG if not already set
98-
export KUBECONFIG="${KUBECONFIG:-${PWD}/kubeconfig}"
9997
# ginkgo regexes
10098
SKIP="${SKIP:-}"
10199
FOCUS="${FOCUS:-"\\[Conformance\\]"}"
@@ -162,6 +160,9 @@ if [[ -z "${SKIP_CREATE_CLUSTER:-}" ]]; then
162160
create_cluster
163161
fi
164162

163+
# export the target cluster KUBECONFIG if not already set
164+
export KUBECONFIG="${KUBECONFIG:-${PWD}/kubeconfig}"
165+
165166
# build k8s binaries and run upstream e2e tests
166167
if [[ -z "${SKIP_UPSTREAM_E2E_TESTS:-}" ]]; then
167168
build_k8s
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ metadata:
2525
spec:
2626
additionalTags:
2727
creationTimestamp: ${TIMESTAMP}
28-
jobName: cluster-api-provider-azure-conformance
28+
jobName: ${JOB_NAME}
2929
location: ${AZURE_LOCATION}
3030
networkSpec:
3131
vnet:

β€Žtemplates/test/cluster-template-conformance.yamlβ€Ž renamed to β€Žtemplates/test/cluster-template-prow.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ metadata:
2525
spec:
2626
additionalTags:
2727
creationTimestamp: ${TIMESTAMP}
28-
jobName: cluster-api-provider-azure-conformance
28+
jobName: ${JOB_NAME}
2929
location: ${AZURE_LOCATION}
3030
networkSpec:
3131
vnet:
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
21
apiVersion: kustomize.config.k8s.io/v1beta1
32
kind: Kustomization
43
namespace: default
54
resources:
6-
- ../conformance
5+
- ../prow
76
patchesStrategicMerge:
87
- patches/ci-version.yaml
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
21
apiVersion: kustomize.config.k8s.io/v1beta1
32
kind: Kustomization
43
namespace: default
54
resources:
65
- ../../flavors/default
76
patchesStrategicMerge:
8-
- patches/conformance-tags.yaml
7+
- patches/tags.yaml
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ metadata:
44
name: ${CLUSTER_NAME}
55
spec:
66
additionalTags:
7-
jobName: 'cluster-api-provider-azure-conformance'
8-
creationTimestamp: ${TIMESTAMP}
7+
jobName: ${JOB_NAME}
8+
creationTimestamp: ${TIMESTAMP}

0 commit comments

Comments
Β (0)