Skip to content

Commit

Permalink
fix os_sku and vm_size env vars
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Baker <[email protected]>
  • Loading branch information
rbtr authored Sep 26, 2023
1 parent 6251874 commit 0c8106a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ steps:
inlineScript: |
set -ex
make -C ./hack/aks azcfg AZCLI=az REGION=${{ parameters.region }}
make -C ./hack/aks ${{ parameters.clusterType }} AZCLI=az REGION=${{ parameters.region }} SUB=$(SUB_AZURE_NETWORK_AGENT_BUILD_VALIDATIONS) CLUSTER=${{ parameters.clusterName }} NODE_COUNT=${{ parameters.nodeCount }} VM_SIZE=${{ parameters.vmSize }} WINDOWS_VM_SKU=${{ parameters.windowsVMSize }} WINDOWS_USERNAME=${WINDOWS_USERNAME} WINDOWS_PASSWORD=${WINDOWS_PASSWORD}
make -C ./hack/aks ${{ parameters.clusterType }} AZCLI=az REGION=${{ parameters.region }} SUB=$(SUB_AZURE_NETWORK_AGENT_BUILD_VALIDATIONS) CLUSTER=${{ parameters.clusterName }} NODE_COUNT=${{ parameters.nodeCount }} VM_SIZE=${{ parameters.vmSize }} VM_SIZE_WIN=${{ parameters.windowsVMSize }} WINDOWS_USERNAME=${WINDOWS_USERNAME} WINDOWS_PASSWORD=${WINDOWS_PASSWORD}
name: "CreateAksCluster"
displayName: "Create AKS Cluster"
12 changes: 6 additions & 6 deletions .pipelines/cni/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,16 @@ stages:
clusterType: overlay-byocni-nokubeproxy-up
clusterName: "cilium-overlay"
nodeCount: ${CILIUM_NODE_COUNT}
vmSize: ${CILIUM_VM_SKU}
vmSize: ${CILIUM_VM_SIZE}

- template: singletenancy/cniv1-template.yaml
parameters:
name: win22_cniv1
clusterType: windows-cniv1-up
clusterName: win22-cniv1
nodeCount: ${WINDOWS_NODE_COUNT}
vmSize: ${WINDOWS_LINUX_VM_SKU}
windowsVMSize: ${WINDOWS_VM_SKU}
vmSize: ${WINDOWS_LINUX_VM_SIZE}
windowsVMSize: ${WINDOWS_VM_SIZE}
os: windows
os_version: 'ltsc2022'
arch: amd64
Expand All @@ -129,7 +129,7 @@ stages:
clusterType: linux-cniv1-up
clusterName: linux-cniv1
nodeCount: ${LINUX_NODE_COUNT}
vmSize: ${LINUX_VM_SKU}
vmSize: ${VM_SIZE_LINUX}
os: linux
arch: amd64
scaleup: ${LINUX_SCALEUP}
Expand All @@ -141,7 +141,7 @@ stages:
clusterType: swift-byocni-up
clusterName: linux-cniv2-podsubnet
nodeCount: ${LINUX_NODE_COUNT}
vmSize: ${LINUX_VM_SKU}
vmSize: ${VM_SIZE_LINUX}
arch: amd64

- template: singletenancy/linux-cniv2-template.yaml
Expand All @@ -150,7 +150,7 @@ stages:
clusterType: overlay-byocni-up
clusterName: linux-cniv2-overlay
nodeCount: ${LINUX_NODE_COUNT}
vmSize: ${LINUX_VM_SKU}
vmSize: ${VM_SIZE_LINUX}
arch: amd64

- stage: delete_resources
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/create-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
fi
mkdir -p ~/.kube/
make -C ./hack/aks azcfg AZCLI=az REGION=${{ parameters.region }}
make -C ./hack/aks ${{ parameters.clusterType }} AZCLI=az REGION=${{ parameters.region }} SUB=$(SUB_AZURE_NETWORK_AGENT_BUILD_VALIDATIONS) CLUSTER=${{ parameters.clusterName }} K8S_VER=${{ parameters.k8sVersion }} VM_SIZE=${{ parameters.vmSize }} WINDOWS_OS_SKU=${{ parameters.windowsOsSku }} WINDOWS_VM_SKU=${{ parameters.vmSize }} WINDOWS_USERNAME=${WINDOWS_USERNAME} WINDOWS_PASSWORD=${WINDOWS_PASSWORD}
make -C ./hack/aks ${{ parameters.clusterType }} AZCLI=az REGION=${{ parameters.region }} SUB=$(SUB_AZURE_NETWORK_AGENT_BUILD_VALIDATIONS) CLUSTER=${{ parameters.clusterName }} K8S_VER=${{ parameters.k8sVersion }} VM_SIZE=${{ parameters.vmSize }} OS_SKU_WIN=${{ parameters.windowsOsSku }} VM_SIZE_WIN=${{ parameters.vmSize }} WINDOWS_USERNAME=${WINDOWS_USERNAME} WINDOWS_PASSWORD=${WINDOWS_PASSWORD}
echo "Cluster successfully created"
displayName: Cluster - ${{ parameters.clusterType }}
continueOnError: ${{ contains(parameters.clusterType, 'dualstack') }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ ACNCLI_PLATFORM_TAG ?= $(subst /,-,$(PLATFORM))$(if $(OS_VERSION),-$(OS_VE
CNI_DROPGZ_PLATFORM_TAG ?= $(subst /,-,$(PLATFORM))$(if $(OS_VERSION),-$(OS_VERSION),)-$(CNI_DROPGZ_VERSION)
CNI_DROPGZ_TEST_PLATFORM_TAG ?= $(subst /,-,$(PLATFORM))$(if $(OS_VERSION),-$(OS_VERSION),)-$(CNI_DROPGZ_TEST_VERSION)
CNS_PLATFORM_TAG ?= $(subst /,-,$(PLATFORM))$(if $(OS_VERSION),-$(OS_VERSION),)-$(CNS_VERSION)
CNS_WINDOWS_PLATFORM_TAG ?= $(subst /,-,$(PLATFORM))$(if $(OS_VERSION),-$(OS_VERSION),)-$(CNS_VERSION)-$(WINDOWS_OS_SKU)
CNS_WINDOWS_PLATFORM_TAG ?= $(subst /,-,$(PLATFORM))$(if $(OS_VERSION),-$(OS_VERSION),)-$(CNS_VERSION)-$(OS_SKU_WIN)
NPM_PLATFORM_TAG ?= $(subst /,-,$(PLATFORM))$(if $(OS_VERSION),-$(OS_VERSION),)-$(NPM_VERSION)


Expand Down

0 comments on commit 0c8106a

Please sign in to comment.