Skip to content

Commit e2d35fe

Browse files
authored
🌱 Changes for community owned Prow CI (#3473)
* swap pod CIDR for CI * test: adjust vsphere.yaml for new prow CI * test: patch vm-operator for vc7 compatibility * Makefile: generate both upstream and mirror-prow * e2e: use generated ssh keypair * make compatible to mirror-prow * fix shellcheck * hack: boskos naming * e2e.sh fixup * fixup * vm-operator: fix platform in cross-built docker-images and rebuild * fix ssh pubkey * janitor: gcve compatibility * e2e: drop VPN parts * e2e: fixup janitor args * fixup vcsim compatibility * hack/tools/janitor/main.go drop old defaults * shrink cidr for pods in CI * Makefile: drop kubetest
1 parent 2a8950d commit e2d35fe

File tree

17 files changed

+141
-111
lines changed

17 files changed

+141
-111
lines changed

‎Makefile

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,10 @@ VM_OPERATOR_DIR := test/infrastructure/vm-operator
232232
VM_OPERATOR_TMP_DIR ?= $(VM_OPERATOR_DIR)/vm-operator.tmp
233233
# note: this is the commit from 1.8.6 tag
234234
VM_OPERATOR_COMMIT ?= de75746a9505ef3161172d99b735d6593c54f0c5
235+
# sha256 sum diff of the applied patches on-top, it should match the output of `git diff | sha256`.
236+
VM_OPERATOR_DIFF ?= 65e87004a530fdf98ae636d6b3700db086a8f356066fb15996bd8f5abe9f236c
235237
VM_OPERATOR_VERSION ?= v1.8.6-0-gde75746a
238+
VM_OPERATOR_IMAGE_TAG ?= $(VM_OPERATOR_VERSION)-$(shell echo $(VM_OPERATOR_DIFF) | head -c 8)
236239
VM_OPERATOR_ALL_ARCH = amd64 arm64
237240

238241
# net operator
@@ -284,6 +287,7 @@ NETOP_RBAC_ROOT ?= $(NETOP_DIR)/config/rbac
284287
TEST_EXTENSION_RBAC_ROOT ?= $(TEST_EXTENSION_DIR)/config/rbac
285288

286289
JANITOR_DIR ?= ./$(TOOLS_DIR)/janitor
290+
JANITOR_ARGS ?= --resource-type=gcve-vsphere-project
287291

288292
help: # Display this help
289293
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[0-9A-Za-z_-]+:.*?##/ { printf " \033[36m%-50s\033[0m %s\n", $$1, $$2 } /^\$$\([0-9A-Za-z_-]+\):.*?##/ { gsub("_","-", $$1); printf " \033[36m%-50s\033[0m %s\n", tolower(substr($$1, 3, length($$1)-7)), $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
@@ -448,18 +452,11 @@ generate-e2e-templates-v1.11: $(KUSTOMIZE)
448452
.PHONY: generate-test-infra-prowjobs
449453
generate-test-infra-prowjobs: $(PROWJOB_GEN) ## Generates the prowjob configurations in test-infra
450454
@if [ -z "${TEST_INFRA_DIR}" ]; then echo "TEST_INFRA_DIR is not set"; exit 1; fi
451-
mkdir -p "$(TEST_INFRA_DIR)/config/jobs/kubernetes-sigs/cluster-api-provider-vsphere/downstream"
452455
$(PROWJOB_GEN) \
453456
-config "$(TEST_INFRA_DIR)/config/jobs/kubernetes-sigs/cluster-api-provider-vsphere/cluster-api-provider-vsphere-prowjob-gen.yaml" \
454457
-templates-dir "$(TEST_INFRA_DIR)/config/jobs/kubernetes-sigs/cluster-api-provider-vsphere/templates" \
455-
-output-dir "$(TEST_INFRA_DIR)/config/jobs/kubernetes-sigs/cluster-api-provider-vsphere/downstream"
456-
@for f in "$(TEST_INFRA_DIR)/config/jobs/kubernetes-sigs/cluster-api-provider-vsphere/downstream/"*periodics*; do \
457-
cat "$${f}" | yq '.periodics |= map(select(.cluster != null))' > "$(TEST_INFRA_DIR)/config/jobs/kubernetes-sigs/cluster-api-provider-vsphere/$$(basename $${f})"; \
458-
cat "$(TEST_INFRA_DIR)/config/jobs/kubernetes-sigs/cluster-api-provider-vsphere/$$(basename $${f})" | grep -q 'periodics: \[\]' && rm "$(TEST_INFRA_DIR)/config/jobs/kubernetes-sigs/cluster-api-provider-vsphere/$$(basename $${f})" || true; \
459-
done
460-
@for f in "$(TEST_INFRA_DIR)/config/jobs/kubernetes-sigs/cluster-api-provider-vsphere/downstream/"*presubmits*; do \
461-
cat "$${f}" | yq '.presubmits."kubernetes-sigs/cluster-api-provider-vsphere" |= map(select(.cluster != null))' > "$(TEST_INFRA_DIR)/config/jobs/kubernetes-sigs/cluster-api-provider-vsphere/$$(basename $${f})";\
462-
done
458+
-output-dir "$(TEST_INFRA_DIR)/config/jobs/kubernetes-sigs/cluster-api-provider-vsphere"
459+
463460
## --------------------------------------
464461
## Lint / Verify
465462
## --------------------------------------
@@ -901,18 +898,23 @@ checkout-vm-operator:
901898
git clone "https://github.com/vmware-tanzu/vm-operator.git" "$(VM_OPERATOR_TMP_DIR)"; \
902899
cd "$(VM_OPERATOR_TMP_DIR)"; \
903900
git checkout "$(VM_OPERATOR_COMMIT)"; \
901+
git apply ../vm-operator-vc7-compat.diff; \
904902
fi
905903
@cd "$(ROOT_DIR)/$(VM_OPERATOR_TMP_DIR)"; \
906-
if [ "$$(git describe --dirty 2> /dev/null)" != "$(VM_OPERATOR_VERSION)" ]; then \
907-
echo "ERROR: checked out version $$(git describe --dirty 2> /dev/null) does not match expected version $(VM_OPERATOR_VERSION)"; \
904+
if [ "$$(git describe 2> /dev/null)" != "$(VM_OPERATOR_VERSION)" ]; then \
905+
echo "ERROR: checked out version $$(git describe 2> /dev/null) does not match expected version $(VM_OPERATOR_VERSION)"; \
906+
exit 1; \
907+
fi; \
908+
if [ "$$(git diff | sha256)" != "$(VM_OPERATOR_DIFF)" ]; then \
909+
echo "ERROR: existing git diff $$(git diff | sha256) does not match the expected diff $(VM_OPERATOR_DIFF)"; \
908910
exit 1; \
909911
fi
910912

911913
.PHONY: generate-manifests-vm-operator
912914
generate-manifests-vm-operator: $(RELEASE_DIR) $(KUSTOMIZE) checkout-vm-operator ## Build the vm-operator manifest yaml file
913915
kustomize build --load-restrictor LoadRestrictionsNone "$(VM_OPERATOR_TMP_DIR)/config/wcp" > "$(VM_OPERATOR_DIR)/config/vm-operator.yaml"
914-
sed -i'' -e 's@image: vmoperator.*@image: '"$(VM_OPERATOR_CONTROLLER_IMG):$(VM_OPERATOR_VERSION)"'@' "$(VM_OPERATOR_DIR)/config/vm-operator.yaml"
915-
kustomize build "$(VM_OPERATOR_DIR)/config" > "$(VM_OPERATOR_DIR)/vm-operator-$(VM_OPERATOR_VERSION).yaml"
916+
sed -i'' -e 's@image: gcr.io/k8s-staging-capi-vsphere/extra/vm-operator.*@image: '"$(VM_OPERATOR_CONTROLLER_IMG):$(VM_OPERATOR_IMAGE_TAG)"'@' "$(VM_OPERATOR_DIR)/config/vm-operator-image-names.yaml"
917+
kustomize build "$(VM_OPERATOR_DIR)/config" > "$(VM_OPERATOR_DIR)/vm-operator-$(VM_OPERATOR_IMAGE_TAG).yaml"
916918

917919
.PHONY: docker-build-all-vm-operator
918920
docker-build-all-vm-operator: $(addprefix docker-vm-operator-build-,$(VM_OPERATOR_ALL_ARCH)) ## Build docker images for all architectures
@@ -924,7 +926,7 @@ docker-vm-operator-build-%:
924926
docker-build-vm-operator: checkout-vm-operator
925927
@if [ -z "${VM_OPERATOR_VERSION}" ]; then echo "VM_OPERATOR_VERSION is not set"; exit 1; fi
926928
cd $(VM_OPERATOR_TMP_DIR) && \
927-
$(MAKE) IMAGE=$(VM_OPERATOR_CONTROLLER_IMG)-$(ARCH) IMAGE_TAG=$(VM_OPERATOR_VERSION) GOARCH=$(ARCH) docker-build
929+
$(MAKE) IMAGE=$(VM_OPERATOR_CONTROLLER_IMG)-$(ARCH) IMAGE_TAG=$(VM_OPERATOR_IMAGE_TAG) GOARCH=$(ARCH) docker-build
928930

929931
.PHONY: docker-push-all-vm-operator
930932
docker-push-all-vm-operator: $(addprefix docker-vm-operator-push-,$(VM_OPERATOR_ALL_ARCH)) ## Push the docker images to be included in the release for all architectures + related multiarch manifests
@@ -936,14 +938,14 @@ docker-vm-operator-push-%:
936938
.PHONY: docker-push-vm-operator
937939
docker-push-vm-operator:
938940
@if [ -z "${VM_OPERATOR_VERSION}" ]; then echo "VM_OPERATOR_VERSION is not set"; exit 1; fi
939-
docker push $(VM_OPERATOR_CONTROLLER_IMG)-$(ARCH):$(VM_OPERATOR_VERSION)
941+
docker push $(VM_OPERATOR_CONTROLLER_IMG)-$(ARCH):$(VM_OPERATOR_IMAGE_TAG)
940942

941943
.PHONY: docker-push-manifest-vm-operator
942944
docker-push-manifest-vm-operator:
943945
@if [ -z "${VM_OPERATOR_VERSION}" ]; then echo "VM_OPERATOR_VERSION is not set"; exit 1; fi
944-
docker manifest create --amend $(VM_OPERATOR_CONTROLLER_IMG):$(VM_OPERATOR_VERSION) $(shell echo $(VM_OPERATOR_ALL_ARCH) | sed -e "s~[^ ]*~$(VM_OPERATOR_CONTROLLER_IMG)\-&:$(VM_OPERATOR_VERSION)~g")
945-
@for arch in $(VM_OPERATOR_ALL_ARCH); do docker manifest annotate --arch $${arch} ${VM_OPERATOR_CONTROLLER_IMG}:${VM_OPERATOR_VERSION} ${VM_OPERATOR_CONTROLLER_IMG}-$${arch}:${VM_OPERATOR_VERSION}; done
946-
docker manifest push --purge $(VM_OPERATOR_CONTROLLER_IMG):$(VM_OPERATOR_VERSION)
946+
docker manifest create --amend $(VM_OPERATOR_CONTROLLER_IMG):$(VM_OPERATOR_IMAGE_TAG) $(shell echo $(VM_OPERATOR_ALL_ARCH) | sed -e "s~[^ ]*~$(VM_OPERATOR_CONTROLLER_IMG)\-&:$(VM_OPERATOR_IMAGE_TAG)~g")
947+
@for arch in $(VM_OPERATOR_ALL_ARCH); do docker manifest annotate --arch $${arch} ${VM_OPERATOR_CONTROLLER_IMG}:${VM_OPERATOR_IMAGE_TAG} ${VM_OPERATOR_CONTROLLER_IMG}-$${arch}:${VM_OPERATOR_IMAGE_TAG}; done
948+
docker manifest push --purge $(VM_OPERATOR_CONTROLLER_IMG):$(VM_OPERATOR_IMAGE_TAG)
947949

948950
.PHONY: clean-vm-operator
949951
clean-vm-operator:
@@ -979,7 +981,7 @@ clean-ci: ## Cleanup orphaned objects in CI
979981
@if [ -z "${GOVC_URL}" ]; then echo "GOVC_URL is not set"; exit 1; fi
980982
@if [ -z "${VSPHERE_TLS_THUMBPRINT}" ]; then echo "VSPHERE_TLS_THUMBPRINT is not set"; exit 1; fi
981983
@if [ -z "${BOSKOS_HOST}" ]; then echo "BOSKOS_HOST is not set"; exit 1; fi
982-
go run $(JANITOR_DIR) --dry-run=false
984+
go run $(JANITOR_DIR) --dry-run=false $(JANITOR_ARGS)
983985

984986
.PHONY: clean-temporary
985987
clean-temporary: ## Remove all temporary files and folders

‎hack/clean-ci.sh

Lines changed: 12 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,18 @@ set -o errexit # exits immediately on any unexpected error (does not bypass tra
1818
set -o nounset # will error if variables are used without first being defined
1919
set -o pipefail # any non-zero exit code in a piped command causes the pipeline to fail with that code
2020

21-
export PATH=${PWD}/hack/tools/bin:${PATH}
22-
REPO_ROOT=$(git rev-parse --show-toplevel)
23-
24-
# shellcheck source=./hack/ensure-kubectl.sh
25-
source "${REPO_ROOT}/hack/ensure-kubectl.sh"
26-
27-
on_exit() {
28-
# kill the VPN
29-
docker kill vpn
30-
}
31-
32-
trap on_exit EXIT
33-
34-
# Run the vpn client in container
35-
docker run --rm -d --name vpn -v "${HOME}/.openvpn/:${HOME}/.openvpn/" \
36-
-w "${HOME}/.openvpn/" --cap-add=NET_ADMIN --net=host --device=/dev/net/tun \
37-
gcr.io/k8s-staging-capi-vsphere/extra/openvpn:latest
38-
39-
# Tail the vpn logs
40-
docker logs vpn
41-
42-
# Wait until the VPN connection is active.
43-
function wait_for_vpn_up() {
44-
local n=0
45-
until [ $n -ge 30 ]; do
46-
curl "https://${GOVC_URL}" --connect-timeout 2 -k && RET=$? || RET=$?
47-
if [[ "$RET" -eq 0 ]]; then
48-
break
49-
fi
50-
n=$((n + 1))
51-
sleep 1
52-
done
53-
return "$RET"
54-
}
55-
wait_for_vpn_up
21+
# Fallback for mirror-prow.
22+
if [[ "${GOVC_URL:-}" == "10.2.224.4" ]]; then
23+
export JANITOR_ARGS
24+
JANITOR_ARGS="--resource-type=vsphere-project-cluster-api-provider --resource-type=vsphere-project-cloud-provider --resource-type=vsphere-project-image-builder"
25+
fi
26+
27+
# Sanitize input envvars to not contain newline
28+
GOVC_USERNAME=$(echo "${GOVC_USERNAME}" | tr -d "\n")
29+
GOVC_PASSWORD=$(echo "${GOVC_PASSWORD}" | tr -d "\n")
30+
GOVC_URL=$(echo "${GOVC_URL}" | tr -d "\n")
31+
VSPHERE_TLS_THUMBPRINT=$(echo "${VSPHERE_TLS_THUMBPRINT}" | tr -d "\n")
32+
BOSKOS_HOST=$(echo "${BOSKOS_HOST}" | tr -d "\n")
5633

5734
# Run e2e tests
5835
make clean-ci

‎hack/e2e.sh

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ export BOSKOS_RESOURCE_OWNER=cluster-api-provider-vsphere
4343
if [[ "${JOB_NAME}" != "" ]]; then
4444
export BOSKOS_RESOURCE_OWNER="${JOB_NAME}/${BUILD_ID}"
4545
fi
46-
export BOSKOS_RESOURCE_TYPE=vsphere-project-cluster-api-provider
46+
export BOSKOS_RESOURCE_TYPE="gcve-vsphere-project"
47+
# Fallback for mirror-prow.
48+
if [[ "${GOVC_URL:-}" == "10.2.224.4" ]]; then
49+
BOSKOS_RESOURCE_TYPE=vsphere-project-cluster-api-provider
50+
fi
4751

4852
on_exit() {
4953
# Only handle Boskos when we have to (not for vcsim)
@@ -55,11 +59,6 @@ on_exit() {
5559
[ -z "${BOSKOS_HOST:-}" ] || docker run -e VSPHERE_USERNAME -e VSPHERE_PASSWORD gcr.io/k8s-staging-capi-vsphere/extra/boskosctl:latest release --boskos-host="${BOSKOS_HOST}" --resource-owner="${BOSKOS_RESOURCE_OWNER}" --resource-name="${BOSKOS_RESOURCE_NAME}" --vsphere-server="${VSPHERE_SERVER}" --vsphere-tls-thumbprint="${VSPHERE_TLS_THUMBPRINT}" --vsphere-folder="${BOSKOS_RESOURCE_FOLDER}" --vsphere-resource-pool="${BOSKOS_RESOURCE_POOL}"
5660
fi
5761

58-
# kill the VPN only when we started it (not vcsim)
59-
if [[ ! "${GINKGO_FOCUS:-}" =~ $RE_VCSIM ]]; then
60-
docker kill vpn
61-
fi
62-
6362
# Cleanup VSPHERE_PASSWORD from temporary artifacts directory.
6463
if [[ "${ORIGINAL_ARTIFACTS}" != "" ]]; then
6564
# Delete non-text files from artifacts directory to not leak files accidentially
@@ -91,47 +90,43 @@ on_exit() {
9190

9291
trap on_exit EXIT
9392

94-
# NOTE: when running on CI without presets, value for variables are missing: GOVC_URL, GOVC_USERNAME, GOVC_PASSWORD, VM_SSH_PUB_KEY),
93+
# Sanitize input envvars to not contain newline
94+
GOVC_USERNAME=$(echo "${GOVC_USERNAME:-}" | tr -d "\n")
95+
GOVC_PASSWORD=$(echo "${GOVC_PASSWORD:-}" | tr -d "\n")
96+
GOVC_URL=$(echo "${GOVC_URL:-}" | tr -d "\n")
97+
VSPHERE_TLS_THUMBPRINT=$(echo "${VSPHERE_TLS_THUMBPRINT:-}" | tr -d "\n")
98+
BOSKOS_HOST=$(echo "${BOSKOS_HOST:-}" | tr -d "\n")
99+
100+
# NOTE: when running on CI without presets, value for variables are missing: GOVC_URL, GOVC_USERNAME, GOVC_PASSWORD),
95101
# but this is not an issue when we are targeting vcsim (corresponding VSPHERE_ variables will be injected during test setup).
96102
export VSPHERE_SERVER="${GOVC_URL:-}"
97103
export VSPHERE_USERNAME="${GOVC_USERNAME:-}"
98104
export VSPHERE_PASSWORD="${GOVC_PASSWORD:-}"
99-
export VSPHERE_SSH_AUTHORIZED_KEY="${VM_SSH_PUB_KEY:-}"
100-
export VSPHERE_SSH_PRIVATE_KEY="/root/ssh/.private-key/private-key"
101105
export E2E_CONF_FILE="${REPO_ROOT}/test/e2e/config/vsphere.yaml"
102106
export E2E_CONF_OVERRIDE_FILE=""
103-
export E2E_VM_OPERATOR_VERSION="${VM_OPERATOR_VERSION:-v1.8.6-0-gde75746a}"
107+
export E2E_VM_OPERATOR_VERSION="${VM_OPERATOR_VERSION:-v1.8.6-0-gde75746a-65e87004}"
104108
export DOCKER_IMAGE_TAR="/tmp/images/image.tar"
105109
export GC_KIND="false"
106110

111+
SSH_KEY_DIR=$(mktemp -d)
112+
export VSPHERE_SSH_PRIVATE_KEY
113+
VSPHERE_SSH_PRIVATE_KEY="${SSH_KEY_DIR}/ssh-key"
114+
ssh-keygen -t ed25519 -f "${VSPHERE_SSH_PRIVATE_KEY}" -N ""
115+
export VSPHERE_SSH_AUTHORIZED_KEY
116+
VSPHERE_SSH_AUTHORIZED_KEY="$(cat "${VSPHERE_SSH_PRIVATE_KEY}.pub")"
117+
118+
# Fallback for mirror-prow.
119+
if [[ "${GOVC_URL:-}" == "10.2.224.4" ]]; then
120+
VSPHERE_SSH_AUTHORIZED_KEY="${VM_SSH_PUB_KEY:-}"
121+
VSPHERE_SSH_PRIVATE_KEY="/root/ssh/.private-key/private-key"
122+
E2E_CONF_OVERRIDE_FILE="$(pwd)/test/e2e/config/config-overrides-mirror-prow.yaml"
123+
fi
124+
107125
# Make tests run in-parallel
108126
export GINKGO_NODES=5
109127

110-
# Only run the vpn/check for IPAM when we need them (not for vcsim)
128+
# Only run the boskos/check for IPAM when we need them (not for vcsim)
111129
if [[ ! "${GINKGO_FOCUS:-}" =~ $RE_VCSIM ]]; then
112-
# Run the vpn client in container
113-
docker run --rm -d --name vpn -v "${HOME}/.openvpn/:${HOME}/.openvpn/" \
114-
-w "${HOME}/.openvpn/" --cap-add=NET_ADMIN --net=host --device=/dev/net/tun \
115-
gcr.io/k8s-staging-capi-vsphere/extra/openvpn:latest
116-
117-
# Tail the vpn logs
118-
docker logs vpn
119-
120-
# Wait until the VPN connection is active.
121-
function wait_for_vpn_up() {
122-
local n=0
123-
until [ $n -ge 30 ]; do
124-
curl "https://${VSPHERE_SERVER}" --connect-timeout 2 -k && RET=$? || RET=$?
125-
if [[ "$RET" -eq 0 ]]; then
126-
break
127-
fi
128-
n=$((n + 1))
129-
sleep 1
130-
done
131-
return "$RET"
132-
}
133-
wait_for_vpn_up
134-
135130
# If BOSKOS_HOST is set then acquire a vsphere-project from Boskos.
136131
if [ -n "${BOSKOS_HOST:-}" ]; then
137132
# Check out the account from Boskos and store the produced environment

‎hack/tools/janitor/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ var (
4343
func initFlags(fs *pflag.FlagSet) {
4444
// Note: Intentionally not adding a fallback value, so it is still possible to not use Boskos.
4545
fs.StringVar(&boskosHost, "boskos-host", os.Getenv("BOSKOS_HOST"), "Boskos server URL. Boskos is only used to retrieve resources if this flag is set.")
46-
fs.StringVar(&resourceOwner, "resource-owner", "vsphere-janitor", "Owner for the resource during cleanup.")
47-
fs.StringArrayVar(&resourceTypes, "resource-type", []string{"vsphere-project-cluster-api-provider", "vsphere-project-cloud-provider", "vsphere-project-image-builder"}, "Types of the resources")
46+
fs.StringVar(&resourceOwner, "resource-owner", "gcve-janitor", "Owner for the resource during cleanup.")
47+
fs.StringArrayVar(&resourceTypes, "resource-type", []string{"gcve-vsphere-project"}, "Types of the resources")
4848
fs.BoolVar(&dryRun, "dry-run", false, "dry-run results in not deleting anything but printing the actions.")
4949
}
5050

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
# This e2e config file contains an example of overrides for a tests targeting a user provided vCenter instance.
3+
# Those overrides will be applied on top of the content of the config file used for CI (only variables and intervals are considered)
4+
5+
variables:
6+
VSPHERE_COMPUTE_CLUSTER: "Cluster-1"
7+
VSPHERE_DATACENTER: "SDDC-Datacenter"
8+
VSPHERE_FOLDER: "/SDDC-Datacenter/vm/Workloads/cluster-api-provider-vsphere"
9+
VSPHERE_RESOURCE_POOL: "/SDDC-Datacenter/host/Cluster-1/Resources/Compute-ResourcePool/cluster-api-provider-vsphere"
10+
VSPHERE_DATASTORE: "WorkloadDatastore"
11+
VSPHERE_STORAGE_POLICY: "Cluster API vSphere Storage Policy"
12+
VSPHERE_NETWORK: "sddc-cgw-network-10"
13+
VSPHERE_DISTRIBUTED_PORT_GROUP: "/SDDC-Datacenter/network/sddc-cgw-network-10"
14+
15+
intervals:

‎test/e2e/config/vsphere.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ images:
1818
loadBehavior: mustLoad
1919
- name: gcr.io/k8s-staging-capi-vsphere/cluster-api-vsphere-test-extension-{ARCH}:dev
2020
loadBehavior: mustLoad
21-
- name: gcr.io/k8s-staging-capi-vsphere/extra/vm-operator:v1.8.6-0-gde75746a
21+
- name: gcr.io/k8s-staging-capi-vsphere/extra/vm-operator:v1.8.6-0-gde75746a-65e87004
2222
loadBehavior: tryLoad
2323

2424
providers:
@@ -237,9 +237,9 @@ providers:
237237
- name: vm-operator
238238
type: RuntimeExtensionProvider # vm-operator isn't a provider, but we fake it is so it can be handled by the clusterctl machinery.
239239
versions:
240-
- name: v1.8.6-0-gde75746a
240+
- name: v1.8.6-0-gde75746a-65e87004
241241
# Use manifest from source files
242-
value: "file://../../../../cluster-api-provider-vsphere/test/infrastructure/vm-operator/vm-operator-v1.8.6-0-gde75746a.yaml"
242+
value: "file://../../../../cluster-api-provider-vsphere/test/infrastructure/vm-operator/vm-operator-v1.8.6-0-gde75746a-65e87004.yaml"
243243
type: "url"
244244
contract: v1beta1
245245
files:
@@ -289,12 +289,12 @@ variables:
289289
WORKER_MACHINE_COUNT: 1
290290
IP_FAMILY: "IPv4"
291291
CLUSTER_CLASS_NAME: "quick-start"
292-
VSPHERE_COMPUTE_CLUSTER: "Cluster-1"
293-
VSPHERE_DATACENTER: "SDDC-Datacenter"
294-
VSPHERE_FOLDER: "/SDDC-Datacenter/vm/Workloads/cluster-api-provider-vsphere"
295-
VSPHERE_RESOURCE_POOL: "/SDDC-Datacenter/host/Cluster-1/Resources/Compute-ResourcePool/cluster-api-provider-vsphere"
296-
VSPHERE_DATASTORE: "WorkloadDatastore"
297-
VSPHERE_STORAGE_POLICY: "Cluster API vSphere Storage Policy"
292+
VSPHERE_COMPUTE_CLUSTER: "k8s-gcve-cluster"
293+
VSPHERE_DATACENTER: "Datacenter"
294+
VSPHERE_FOLDER: "/Datacenter/vm/Workloads/prow"
295+
VSPHERE_RESOURCE_POOL: "/Datacenter/host/k8s-gcve-cluster/Resources/prow"
296+
VSPHERE_DATASTORE: "vsanDatastore"
297+
VSPHERE_STORAGE_POLICY: "vSAN Default Storage Policy"
298298
VSPHERE_STORAGE_CLASS: "test-storageclass"
299299
VSPHERE_MACHINE_CLASS_NAME: "test-machine-class"
300300
# CI runs vm-operator v1.8.6 on vCenter 8, setting CPU and Memory does not work and defaults to 2 CPUs / 2Gi memory.
@@ -309,8 +309,8 @@ variables:
309309
VSPHERE_CONTENT_LIBRARY: "capv"
310310
VSPHERE_CONTENT_LIBRARY_ITEMS: "ubuntu-2204-kube-v1.28.0,ubuntu-2204-kube-v1.29.0,ubuntu-2204-kube-v1.30.0,ubuntu-2404-kube-v1.31.0,ubuntu-2404-kube-v1.32.0,ubuntu-2404-kube-v1.33.0"
311311
VSPHERE_IMAGE_NAME: "ubuntu-2404-kube-v1.33.0"
312-
VSPHERE_NETWORK: "sddc-cgw-network-10"
313-
VSPHERE_DISTRIBUTED_PORT_GROUP: "/SDDC-Datacenter/network/sddc-cgw-network-10"
312+
VSPHERE_NETWORK: "k8s-ci"
313+
VSPHERE_DISTRIBUTED_PORT_GROUP: "/Datacenter/network/k8s-ci"
314314
VSPHERE_TEMPLATE: "ubuntu-2404-kube-v1.33.0"
315315
FLATCAR_VSPHERE_TEMPLATE: "flatcar-stable-4152.2.2-kube-v1.33.0"
316316
KUBETEST_CONFIGURATION: "./data/kubetest/conformance.yaml"

‎test/e2e/data/infrastructure-vsphere-govmomi/main/commons/cluster-network-CIDR.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ spec:
77
clusterNetwork:
88
pods:
99
cidrBlocks:
10-
- 192.168.30.0/24
10+
- 192.168.128.0/24

‎test/e2e/data/infrastructure-vsphere-govmomi/v1.11/commons/cluster-network-CIDR.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ spec:
77
clusterNetwork:
88
pods:
99
cidrBlocks:
10-
- 192.168.30.0/24
10+
- 192.168.128.0/24

‎test/e2e/data/infrastructure-vsphere-govmomi/v1.12/commons/cluster-network-CIDR.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ spec:
77
clusterNetwork:
88
pods:
99
cidrBlocks:
10-
- 192.168.30.0/24
10+
- 192.168.128.0/24

‎test/e2e/data/infrastructure-vsphere-govmomi/v1.13/commons/cluster-network-CIDR.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ spec:
77
clusterNetwork:
88
pods:
99
cidrBlocks:
10-
- 192.168.30.0/24
10+
- 192.168.128.0/24

0 commit comments

Comments
 (0)