Skip to content

Commit

Permalink
Merge pull request #4962 from nojnhuh/aks-test-sku
Browse files Browse the repository at this point in the history
Use Standard tier SKU for AKS e2e tests
  • Loading branch information
k8s-ci-robot authored Jul 4, 2024
2 parents 5493e53 + 97869ed commit 81dd271
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 1 deletion.
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,6 +12,7 @@ patches:
- path: patches/addons.yaml
- path: patches/kubeadm-config-template.yaml
- path: patches.yaml
- path: patches/sku.yaml

sortOptions:
order: fifo
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
1 change: 1 addition & 0 deletions templates/test/ci/prow-aks/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ patches:
- path: patches/aks-pool0.yaml
- path: patches/aks-pool1.yaml
- path: patches/addons.yaml
- path: patches/sku.yaml

sortOptions:
order: fifo
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 81dd271

Please sign in to comment.