Skip to content

Commit 27c0476

Browse files
authored
Merge pull request #5342 from Jont828/entrypoint-custom-builds
Add template for performance testing with custom Kubernetes version
2 parents a0b80be + 9b33af5 commit 27c0476

File tree

7 files changed

+492
-16
lines changed

7 files changed

+492
-16
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,11 @@ create-workload-cluster: $(ENVSUBST) $(KUBECTL) ## Create a workload cluster.
377377
timeout --foreground 1800 bash -c "while ! $(KUBECTL) get secrets -n default | grep $(CLUSTER_NAME)-kubeconfig; do sleep 1; done"
378378
# Get kubeconfig and store it locally.
379379
$(KUBECTL) get secret/$(CLUSTER_NAME)-kubeconfig -n default -o json | jq -r .data.value | base64 --decode > ./kubeconfig
380-
$(KUBECTL) -n default wait --for=condition=Ready --timeout=10m cluster "$(CLUSTER_NAME)"
380+
# TODO: Standardize timeouts across the Makefile and make them configurable based on the job.
381+
$(KUBECTL) -n default wait --for=condition=Ready --timeout=60m cluster "$(CLUSTER_NAME)"
382+
383+
# Set the namespace to `default` b/c when the service account is auto mounted, the namespace is changed to `test-pods`.
384+
$(KUBECTL) --kubeconfig=./kubeconfig config set-context --current --namespace="default"
381385

382386
@echo 'run "$(KUBECTL) --kubeconfig=./kubeconfig ..." to work with the new target cluster'
383387

templates/test/ci/cluster-template-prow-load.yaml renamed to templates/test/dev/cluster-template-custom-builds-load.yaml

Lines changed: 481 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/test/ci/prow-load/kustomization.yaml renamed to templates/test/dev/custom-builds-load/kustomization.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,21 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: default
44
resources:
5-
- ../prow
5+
- ../custom-builds
66
- storageclass-resource-set.yaml
77
patches:
88
- path: patches/cluster-label-storageclass.yaml
99
- path: patches/cluster-label-azuredisk.yaml
1010
- path: patches/kcp-scheduler.yaml
11-
configMapGenerator:
12-
- files:
13-
- storageclass=../../../addons/storageclass-azure-disk.yaml
14-
name: storageclass-${CLUSTER_NAME}
1511
generatorOptions:
1612
annotations:
1713
note: generated
1814
disableNameSuffixHash: true
1915
labels:
2016
type: generated
21-
17+
configMapGenerator:
18+
- files:
19+
- storageclass=../../../addons/storageclass-azure-disk.yaml
20+
name: ${CLUSTER_NAME}-storageclass
2221
sortOptions:
2322
order: fifo

templates/test/ci/prow-load/storageclass-resource-set.yaml renamed to templates/test/dev/custom-builds-load/storageclass-resource-set.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ spec:
1010
storageclass: "true"
1111
resources:
1212
- kind: ConfigMap
13-
name: cni-${CLUSTER_NAME}-storageclass
13+
name: ${CLUSTER_NAME}-storageclass
1414
strategy: ApplyOnce

0 commit comments

Comments
 (0)