Skip to content

Commit

Permalink
Merge pull request #4963 from nojnhuh/aks-test-sku
Browse files Browse the repository at this point in the history
[release-1.15] Use Standard tier SKU for AKS e2e tests
  • Loading branch information
k8s-ci-robot authored Jul 4, 2024
2 parents 1d0c3ae + c59a0a6 commit 5283ae6
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hack/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ capz::util::should_build_ccm() {

# all test regions must support AvailabilityZones
capz::util::get_random_region() {
local REGIONS=("canadacentral" "eastus" "eastus2" "northeurope" "uksouth" "westus2" "westus3")
local REGIONS=("canadacentral" "eastus" "eastus2" "northeurope" "uksouth" "westeurope" "westus2" "westus3")
echo "${REGIONS[${RANDOM} % ${#REGIONS[@]}]}"
}
# all regions below must have GPU availability for the chosen GPU VM SKU
Expand Down
3 changes: 3 additions & 0 deletions templates/test/ci/cluster-template-prow-aks-aso.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions templates/test/ci/cluster-template-prow-aks-clusterclass.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions templates/test/ci/cluster-template-prow-aks.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions templates/test/ci/prow-aks-aso/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ patches:
jobName: ${JOB_NAME}
creationTimestamp: ${TIMESTAMP}
buildProvenance: ${BUILD_PROVENANCE}
- op: replace
path: /spec/resources/0/spec/sku
value:
name: Base
tier: Standard
target:
kind: AzureASOManagedControlPlane
- patch: |-
Expand Down
1 change: 1 addition & 0 deletions templates/test/ci/prow-aks-clusterclass/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ patchesStrategicMerge:
- patches/addons.yaml
- patches/kubeadm-config-template.yaml
- patches.yaml
- patches/sku.yaml
10 changes: 10 additions & 0 deletions templates/test/ci/prow-aks-clusterclass/patches/sku.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AzureManagedControlPlaneTemplate
metadata:
name: ${CLUSTER_NAME}-control-plane
namespace: default
spec:
template:
spec:
sku:
tier: Standard
3 changes: 2 additions & 1 deletion templates/test/ci/prow-aks/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ patchesStrategicMerge:
- ../patches/tags-aks.yaml
- patches/aks-pool0.yaml
- patches/aks-pool1.yaml
- patches/addons.yaml
- patches/addons.yaml
- patches/sku.yaml
8 changes: 8 additions & 0 deletions templates/test/ci/prow-aks/patches/sku.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AzureManagedControlPlane
metadata:
name: ${CLUSTER_NAME}
namespace: default
spec:
sku:
tier: Standard

0 comments on commit 5283ae6

Please sign in to comment.