Skip to content

Commit

Permalink
Merge pull request #634 from chewong/patch-ci-entrypoint
Browse files Browse the repository at this point in the history
πŸƒ remove unused ci script and rename templates
  • Loading branch information
k8s-ci-robot authored May 20, 2020
2 parents b6738e6 + e5e73b5 commit fc0a458
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 174 deletions.
162 changes: 0 additions & 162 deletions scripts/ci-conformance.sh

This file was deleted.

9 changes: 5 additions & 4 deletions scripts/ci-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ create_cluster() {
else
CI_VERSION_URL="https://dl.k8s.io/ci/k8s-master.txt"
fi
export CLUSTER_TEMPLATE="test/cluster-template-conformance-ci-version.yaml"
export CLUSTER_TEMPLATE="test/cluster-template-prow-ci-version.yaml"
export CI_VERSION="${CI_VERSION:-$(curl -sSL ${CI_VERSION_URL})}"
export KUBERNETES_VERSION="${CI_VERSION}"
else
export CLUSTER_TEMPLATE="test/cluster-template-conformance.yaml"
export CLUSTER_TEMPLATE="test/cluster-template-prow.yaml"
fi

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

run_upstream_e2e_tests() {
# export the target cluster KUBECONFIG if not already set
export KUBECONFIG="${KUBECONFIG:-${PWD}/kubeconfig}"
# ginkgo regexes
SKIP="${SKIP:-}"
FOCUS="${FOCUS:-"\\[Conformance\\]"}"
Expand Down Expand Up @@ -162,6 +160,9 @@ if [[ -z "${SKIP_CREATE_CLUSTER:-}" ]]; then
create_cluster
fi

# export the target cluster KUBECONFIG if not already set
export KUBECONFIG="${KUBECONFIG:-${PWD}/kubeconfig}"

# build k8s binaries and run upstream e2e tests
if [[ -z "${SKIP_UPSTREAM_E2E_TESTS:-}" ]]; then
build_k8s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ metadata:
spec:
additionalTags:
creationTimestamp: ${TIMESTAMP}
jobName: cluster-api-provider-azure-conformance
jobName: ${JOB_NAME}
location: ${AZURE_LOCATION}
networkSpec:
vnet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ metadata:
spec:
additionalTags:
creationTimestamp: ${TIMESTAMP}
jobName: cluster-api-provider-azure-conformance
jobName: ${JOB_NAME}
location: ${AZURE_LOCATION}
networkSpec:
vnet:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ../conformance
- ../prow
patchesStrategicMerge:
- patches/ci-version.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ../../flavors/default
patchesStrategicMerge:
- patches/conformance-tags.yaml
- patches/tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ metadata:
name: ${CLUSTER_NAME}
spec:
additionalTags:
jobName: 'cluster-api-provider-azure-conformance'
creationTimestamp: ${TIMESTAMP}
jobName: ${JOB_NAME}
creationTimestamp: ${TIMESTAMP}

0 comments on commit fc0a458

Please sign in to comment.