Skip to content

Commit 519ddd8

Browse files
authored
Merge branch 'master' into ankaggar/instantiate_device_plugin
Signed-off-by: aggarwal0009 <[email protected]>
2 parents 0f08aa0 + b5046a0 commit 519ddd8

File tree

126 files changed

+3305
-2038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+3305
-2038
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG VARIANT="1.22"
1+
ARG VARIANT="1.23"
22
FROM mcr.microsoft.com/vscode/devcontainers/go:${VARIANT}
33
RUN apt-get update && \
44
export DEBIAN_FRONTEND=noninteractive && \

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": {
66
"dockerfile": "Dockerfile",
77
"args": {
8-
"VARIANT": "1.22-bullseye",
8+
"VARIANT": "1.23-bullseye",
99
"NODE_VERSION": "none"
1010
}
1111
},

.github/workflows/codeql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup go
3636
uses: actions/setup-go@v5
3737
with:
38-
go-version: "1.22"
38+
go-version: "1.23"
3939
check-latest: true
4040
- name: Checkout repository
4141
uses: actions/checkout@v4

.github/workflows/crdgen.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
crdgen:
1515
strategy:
1616
matrix:
17-
go-version: ['1.21', '1.22']
17+
go-version: ['1.22', '1.23']
1818
os: [ubuntu-latest]
1919
name: CRDs are Generated
2020
runs-on: ${{ matrix.os }}
@@ -31,5 +31,9 @@ jobs:
3131
run: make -C crd/multitenantnetworkcontainer
3232
- name: Regenerate Multitenancy CRDs
3333
run: make -C crd/multitenancy
34+
- name: Regenerate ClusterSubnetState CRD
35+
run: make -C crd/clustersubnetstate
36+
- name: Regenerate OverlayExtensionConfig CRD
37+
run: make -C crd/overlayextensionconfig
3438
- name: Fail if the tree is dirty
3539
run: test -z "$(git status --porcelain)"

.github/workflows/cyclonus-netpol-extended-nightly-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- uses: actions/setup-go@v5
2828
with:
29-
go-version: "^1.22"
29+
go-version: "^1.23"
3030

3131
- name: Setup Kind
3232
uses: engineerd/[email protected]

.github/workflows/cyclonus-netpol-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
- uses: actions/setup-go@v5
3535
with:
36-
go-version: '^1.22'
36+
go-version: '^1.23'
3737

3838
- name: Setup Kind
3939
uses: helm/kind-action@v1

.github/workflows/golangci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
go-version: ['1.21.x', '1.22.x']
18+
go-version: ['1.22.x', '1.23.x']
1919
os: [ubuntu-latest, windows-latest]
2020
name: Lint
2121
runs-on: ${{ matrix.os }}
@@ -29,5 +29,5 @@ jobs:
2929
- name: golangci-lint
3030
uses: golangci/golangci-lint-action@v6
3131
with:
32-
version: v1.55
32+
version: v1.61
3333
args: --new-from-rev=origin/master --config=.golangci.yml --timeout=25m

.pipelines/cni/cilium/cilium-scale-test.yaml

Lines changed: 81 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,32 @@ pr: none
22
trigger: none
33

44
stages:
5+
- stage: create_rg_cluster
6+
displayName: "Create RG & Cluster"
7+
jobs:
8+
- job: create_rg_cluster
9+
pool:
10+
name: "$(BUILD_POOL_NAME_DEFAULT)"
11+
steps:
12+
- task: AzureCLI@2
13+
inputs:
14+
azureSubscription: $(TEST_SUB_SERVICE_CONNECTION)
15+
scriptLocation: "inlineScript"
16+
scriptType: "bash"
17+
addSpnToEnvironment: true
18+
inlineScript: |
19+
set -ex
20+
az extension add --name aks-preview
21+
22+
subscriptionId="$(az account list --query "[?isDefault].id" --output tsv)"
23+
make -C ./hack/aks AZCLI=az ${CLUSTER_TYPE} CLUSTER=${CLUSTER} GROUP=${RESOURCE_GROUP} REGION=${LOCATION} NODE_COUNT=5 VM_SIZE=${VMSIZE} SUB=${subscriptionId} || {
24+
echo "Failed to create Cluster"
25+
exit 1
26+
}
27+
ls -lah
28+
pwd
29+
kubectl cluster-info
30+
kubectl get po -owide -A
531
- stage: update_daemonset_versions
632
displayName: "Update Cilium + CNS Version and Restart Nodes"
733
jobs:
@@ -16,24 +42,54 @@ stages:
1642
scriptType: "bash"
1743
addSpnToEnvironment: true
1844
inlineScript: |
19-
az aks get-credentials --resource-group ${CLUSTER} --name ${CLUSTER}
45+
az aks get-credentials --resource-group ${RESOURCE_GROUP} --name ${CLUSTER}
2046
echo "Redeploy all cilium components and update cilium version. Redeploy all to catch all changes between versions"
21-
echo "deploy Cilium ConfigMap"
22-
kubectl apply -f test/integration/manifests/cilium/cilium-config.yaml
47+
pwd
48+
2349
echo "install Cilium ${CILIUM_VERSION_TAG}"
24-
envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY}' < test/integration/manifests/cilium/daemonset.yaml | kubectl apply -f -
25-
envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY}' < test/integration/manifests/cilium/deployment.yaml | kubectl apply -f -
26-
kubectl apply -f test/integration/manifests/cilium/cilium-agent
27-
kubectl apply -f test/integration/manifests/cilium/cilium-operator
28-
echo "Keep CNS version up to date, grabbing pipeline parameter"
29-
CNS_IMAGE=${CNS_IMAGE}
30-
sed -i '/containers:/{n;n;s/\(image\).*/\1: '"${CNS_IMAGE//\//\\/}"'/}' test/integration/manifests/cns/daemonset.yaml
31-
kubectl apply -f test/integration/manifests/cns/daemonset.yaml
50+
export DIR=${CILIUM_VERSION_TAG%.*}
51+
echo "installing files from ${DIR}"
52+
53+
echo "deploy Cilium ConfigMap"
54+
if ${IS_DUALSTACK}; then
55+
echo "Use dualstack configmap for Cilium"
56+
kubectl apply -f test/integration/manifests/cilium/v${DIR}/cilium-config/cilium-config-dualstack.yaml
57+
else
58+
kubectl apply -f test/integration/manifests/cilium/v${DIR}/cilium-config/cilium-config.yaml
59+
fi
60+
61+
# Passes Cilium image to daemonset and deployment
62+
kubectl apply -f test/integration/manifests/cilium/v${DIR}/cilium-agent/files
63+
kubectl apply -f test/integration/manifests/cilium/v${DIR}/cilium-operator/files
64+
65+
export CILIUM_VERSION_TAG=${CILIUM_VERSION_TAG}
66+
export CILIUM_IMAGE_REGISTRY=${CILIUM_IMAGE_REGISTRY}
67+
if ${IS_DUALSTACK}; then
68+
echo "Use dualstack daemonset for Cilium"
69+
envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY},${IPV6_HP_BPF_VERSION}' < test/integration/manifests/cilium/v${DIR}/cilium-agent/templates/daemonset-dualstack.yaml | kubectl apply -f -
70+
else
71+
envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY}' < test/integration/manifests/cilium/v${DIR}/cilium-agent/templates/daemonset.yaml | kubectl apply -f -
72+
fi
73+
74+
envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY}' < test/integration/manifests/cilium/v${DIR}/cilium-operator/templates/deployment.yaml | kubectl apply -f -
75+
kubectl get po -owide -A
76+
77+
echo "Deploy Azure-CNS"
78+
sudo -E env "PATH=$PATH" make test-load AZURE_IPAM_VERSION=v$(AZURE_IPAM_VERSION) CNS_ONLY=true CNS_VERSION=v$(CNS_VERSION) INSTALL_CNS=true INSTALL_OVERLAY=true CNS_IMAGE_REPO=$(CNS_IMAGE_REPO)
79+
kubectl get po -owide -A
80+
kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=10m || {
81+
echo "Not all pods ready"
82+
kubectl get po -owide -A
83+
exit 1
84+
}
85+
kubectl get po -owide -A
86+
87+
echo "Restart Nodes"
3288
for val in $(az vmss list -g MC_${clusterName}_${clusterName}_$(REGION_AKS_CLUSTER_TEST) --query "[].name" -o tsv); do
3389
make -C ./hack/aks restart-vmss AZCLI=az CLUSTER=${clusterName} REGION=$(REGION_AKS_CLUSTER_TEST) VMSS_NAME=${val}
3490
done
3591
kubectl get node
36-
kubectl get pod -A
92+
kubectl get po -owide -A
3793
name: "UpdateCiliumandCNSVersion"
3894
displayName: "Update Cilium and CNS Version"
3995
- stage: scale_up_cluster
@@ -73,6 +129,7 @@ stages:
73129
fi
74130
name: "ScaleUp"
75131
displayName: "Scale up Nodes"
132+
timeoutInMinutes: 90
76133
- stage: label_nodes
77134
displayName: "Label Nodes for Testing"
78135
jobs:
@@ -88,7 +145,7 @@ stages:
88145
addSpnToEnvironment: true
89146
inlineScript: |
90147
echo "Set node label scale-test=true and connectivity-test=true for testing"
91-
az aks get-credentials --resource-group ${CLUSTER} --name ${CLUSTER}
148+
az aks get-credentials --resource-group ${RESOURCE_GROUP} --name ${CLUSTER}
92149
cd test/scale
93150
chmod +x label-nodes.sh
94151
./label-nodes.sh
@@ -100,6 +157,7 @@ stages:
100157
- job: scale_deployments
101158
pool:
102159
name: "$(BUILD_POOL_NAME_DEFAULT)"
160+
timeoutInMinutes: 120
103161
steps:
104162
- task: AzureCLI@2
105163
inputs:
@@ -108,7 +166,7 @@ stages:
108166
scriptType: "bash"
109167
addSpnToEnvironment: true
110168
inlineScript: |
111-
az aks get-credentials --resource-group ${CLUSTER} --name ${CLUSTER}
169+
az aks get-credentials --resource-group ${RESOURCE_GROUP} --name ${CLUSTER}
112170
echo "collect cpu and memory usage before scaling for network policies"
113171
mkdir test1_1_netpol_cpu_and_mem_before
114172
cd test1_1_netpol_cpu_and_mem_before
@@ -173,7 +231,7 @@ stages:
173231
addSpnToEnvironment: true
174232
inlineScript: |
175233
echo "Run network policies test"
176-
az aks get-credentials --resource-group ${CLUSTER} --name ${CLUSTER}
234+
az aks get-credentials --resource-group ${RESOURCE_GROUP} --name ${CLUSTER}
177235
cd test/scale/connectivity
178236
chmod +x test-connectivity.sh
179237
./test-connectivity.sh --num-scale-pods-to-verify=${NUM_SCALE_PODS_TO_VERIFY} --max-wait-for-initial-connectivity=600 --max-wait-after-adding-netpol=120
@@ -206,6 +264,7 @@ stages:
206264
- job: deploy_service
207265
pool:
208266
name: "$(BUILD_POOL_NAME_DEFAULT)"
267+
timeoutInMinutes: 120
209268
steps:
210269
- task: AzureCLI@2
211270
inputs:
@@ -214,7 +273,7 @@ stages:
214273
scriptType: "bash"
215274
addSpnToEnvironment: true
216275
inlineScript: |
217-
az aks get-credentials --resource-group ${CLUSTER} --name ${CLUSTER}
276+
az aks get-credentials --resource-group ${RESOURCE_GROUP} --name ${CLUSTER}
218277
echo "collect cpu and mem results before scale for lb tests"
219278
mkdir test2_1_lb_cpu_and_mem_before
220279
cd test2_1_lb_cpu_and_mem_before
@@ -276,7 +335,7 @@ stages:
276335
scriptType: "bash"
277336
addSpnToEnvironment: true
278337
inlineScript: |
279-
az aks get-credentials --resource-group ${CLUSTER} --name ${CLUSTER}
338+
az aks get-credentials --resource-group ${RESOURCE_GROUP} --name ${CLUSTER}
280339
echo "Deploy apachebench pod and run test"
281340
cd hack/manifests
282341
kubectl apply -f apache.yaml
@@ -336,7 +395,7 @@ stages:
336395
scriptType: "bash"
337396
addSpnToEnvironment: true
338397
inlineScript: |
339-
az aks get-credentials --resource-group ${CLUSTER} --name ${CLUSTER}
398+
az aks get-credentials --resource-group ${RESOURCE_GROUP} --name ${CLUSTER}
340399
chmod +x hack/scripts/netperf.sh
341400
kubectl apply -f hack/manifests/netperf-pod.yaml
342401
kubectl rollout status deployment container6 --timeout=30s
@@ -392,10 +451,10 @@ stages:
392451
addSpnToEnvironment: true
393452
inlineScript: |
394453
set -ex
395-
az aks get-credentials --resource-group ${CLUSTER} --name ${CLUSTER}
454+
az aks get-credentials --resource-group ${RESOURCE_GROUP} --name ${CLUSTER}
396455
echo "Scaling to 5 nodes"
397-
vmss_name=$(az vmss list -g MC_${CLUSTER}_${CLUSTER}_$(LOCATION) --query "[].name" -o tsv)
398-
make -C ./hack/aks scale-vmss AZCLI=az CLUSTER=${CLUSTER} REGION=$(LOCATION) VMSS_NAME=$vmss_name NODE_COUNT=5
456+
vmss_name=$(az vmss list -g MC_${RESOURCE_GROUP}_${CLUSTER}_$(LOCATION) --query "[].name" -o tsv)
457+
make -C ./hack/aks scale-vmss AZCLI=az GROUP=${RESOURCE_GROUP} CLUSTER=${CLUSTER} REGION=$(LOCATION) VMSS_NAME=$vmss_name NODE_COUNT=5
399458
kubectl get node
400459
name: "ScaleDown"
401460
displayName: "Scale down to 5 Nodes"
@@ -414,7 +473,7 @@ stages:
414473
addSpnToEnvironment: true
415474
inlineScript: |
416475
echo "delete test resources and namespaces"
417-
az aks get-credentials --resource-group ${CLUSTER} --name ${CLUSTER}
476+
az aks get-credentials --resource-group ${RESOURCE_GROUP} --name ${CLUSTER}
418477
kubectl delete ns scale-test
419478
kubectl delete ns connectivity-test
420479
kubectl get ns

.pipelines/cni/lsg/pipeline.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,5 @@ stages:
100100
name: $(name)
101101
clusterName: $(clusterName)-$(commitID)
102102
region: $(LOCATION)
103+
sub: $(SUB_AZURE_NETWORK_AGENT_BUILD_VALIDATIONS)
104+
svcConn: $(BUILD_VALIDATIONS_SERVICE_CONNECTION)

.pipelines/pipeline.yaml

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -139,20 +139,6 @@ stages:
139139
name: cni
140140
os: windows
141141
os_version: ltsc2025
142-
cni_dropgz_linux_amd64:
143-
arch: amd64
144-
name: cni-dropgz
145-
os: linux
146-
cni_dropgz_windows2019_amd64:
147-
arch: amd64
148-
name: cni-dropgz
149-
os: windows
150-
os_version: ltsc2019
151-
cni_dropgz_windows2022_amd64:
152-
arch: amd64
153-
name: cni-dropgz
154-
os: windows
155-
os_version: ltsc2022
156142
cns_linux_amd64:
157143
arch: amd64
158144
name: cns
@@ -206,10 +192,6 @@ stages:
206192
arch: arm64
207193
name: cni
208194
os: linux
209-
cni_dropgz_linux_arm64:
210-
arch: arm64
211-
name: cni-dropgz
212-
os: linux
213195
cns_linux_arm64:
214196
arch: arm64
215197
name: cns
@@ -250,10 +232,6 @@ stages:
250232
name: cni
251233
os_versions: ltsc2019 ltsc2022 ltsc2025
252234
platforms: linux/amd64 linux/arm64 windows/amd64
253-
cni_dropgz:
254-
name: cni-dropgz
255-
os_versions: ltsc2019 ltsc2022
256-
platforms: linux/amd64 linux/arm64 windows/amd64
257235
cns:
258236
name: cns
259237
os_versions: ltsc2019 ltsc2022 ltsc2025
@@ -330,6 +308,17 @@ stages:
330308
k8sVersion: ""
331309
dependsOn: "containerize"
332310

311+
# Azure Overlay E2E Stateless CNI tests
312+
- template: singletenancy/azure-cni-overlay-stateless/azure-cni-overlay-stateless-e2e-job-template.yaml
313+
parameters:
314+
name: "azure_overlay_stateless_e2e"
315+
displayName: Azure Stateless CNI Overlay
316+
os: windows
317+
clusterType: overlay-byocni-up
318+
clusterName: "statelesswin"
319+
vmSize: Standard_B2ms
320+
dependsOn: "containerize"
321+
333322
# AKS Swift E2E tests
334323
- template: singletenancy/aks-swift/e2e-job-template.yaml
335324
parameters:
@@ -413,6 +402,7 @@ stages:
413402
dependsOn:
414403
- setup
415404
- azure_overlay_e2e
405+
- azure_overlay_stateless_e2e
416406
- aks_swift_e2e
417407
- cilium_e2e
418408
- cilium_overlay_e2e
@@ -448,6 +438,10 @@ stages:
448438
name: azure_overlay_e2e
449439
clusterName: "azovere2e"
450440
region: $(REGION_AKS_CLUSTER_TEST)
441+
azure_overlay_stateless_e2e:
442+
name: azure_overlay_stateless_e2e
443+
clusterName: "statelesswin"
444+
region: $(REGION_AKS_CLUSTER_TEST)
451445
aks_swift_e2e:
452446
name: aks_swift_e2e
453447
clusterName: "swifte2e"

0 commit comments

Comments
 (0)