Skip to content

Commit

Permalink
Merge pull request #5342 from Jont828/entrypoint-custom-builds
Browse files Browse the repository at this point in the history
Add template for performance testing with custom Kubernetes version
  • Loading branch information
k8s-ci-robot authored Jan 15, 2025
2 parents a0b80be + 9b33af5 commit 27c0476
Show file tree
Hide file tree
Showing 7 changed files with 492 additions and 16 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,11 @@ create-workload-cluster: $(ENVSUBST) $(KUBECTL) ## Create a workload cluster.
timeout --foreground 1800 bash -c "while ! $(KUBECTL) get secrets -n default | grep $(CLUSTER_NAME)-kubeconfig; do sleep 1; done"
# Get kubeconfig and store it locally.
$(KUBECTL) get secret/$(CLUSTER_NAME)-kubeconfig -n default -o json | jq -r .data.value | base64 --decode > ./kubeconfig
$(KUBECTL) -n default wait --for=condition=Ready --timeout=10m cluster "$(CLUSTER_NAME)"
# TODO: Standardize timeouts across the Makefile and make them configurable based on the job.
$(KUBECTL) -n default wait --for=condition=Ready --timeout=60m cluster "$(CLUSTER_NAME)"

# Set the namespace to `default` b/c when the service account is auto mounted, the namespace is changed to `test-pods`.
$(KUBECTL) --kubeconfig=./kubeconfig config set-context --current --namespace="default"

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

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ../prow
- ../custom-builds
- storageclass-resource-set.yaml
patches:
- path: patches/cluster-label-storageclass.yaml
- path: patches/cluster-label-azuredisk.yaml
- path: patches/kcp-scheduler.yaml
configMapGenerator:
- files:
- storageclass=../../../addons/storageclass-azure-disk.yaml
name: storageclass-${CLUSTER_NAME}
generatorOptions:
annotations:
note: generated
disableNameSuffixHash: true
labels:
type: generated

configMapGenerator:
- files:
- storageclass=../../../addons/storageclass-azure-disk.yaml
name: ${CLUSTER_NAME}-storageclass
sortOptions:
order: fifo
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ spec:
storageclass: "true"
resources:
- kind: ConfigMap
name: cni-${CLUSTER_NAME}-storageclass
name: ${CLUSTER_NAME}-storageclass
strategy: ApplyOnce

0 comments on commit 27c0476

Please sign in to comment.