Skip to content

Commit 22e90d4

Browse files
authored
Merge branch 'master' into krouthu/service-tag
Signed-off-by: Keerthana Routhu <[email protected]>
2 parents 0fdb4df + a2a2ab8 commit 22e90d4

File tree

85 files changed

+2638
-506
lines changed

Some content is hidden

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

85 files changed

+2638
-506
lines changed

.pipelines/cni/cilium/nightly-release-test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ stages:
129129
name: "cilium_nightly"
130130
clusterName: ciliumnightly-$(commitID)
131131
testHubble: true
132+
testLRP: true
132133

133134
- template: ../../cni/k8s-e2e/k8s-e2e-job-template.yaml
134135
parameters:

.pipelines/mdnc/azure-cns-cni-1.4.39.1.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ spec:
8282
operator: NotIn
8383
values:
8484
- virtual-kubelet
85-
- key: beta.kubernetes.io/os
85+
- key: kubernetes.io/os
8686
operator: In
8787
values:
8888
- linux

.pipelines/mdnc/azure-cns-cni-1.5.28.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ spec:
8282
operator: NotIn
8383
values:
8484
- virtual-kubelet
85-
- key: beta.kubernetes.io/os
85+
- key: kubernetes.io/os
8686
operator: In
8787
values:
8888
- linux

.pipelines/mdnc/azure-cns-cni-1.5.4.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ spec:
8282
operator: NotIn
8383
values:
8484
- virtual-kubelet
85-
- key: beta.kubernetes.io/os
85+
- key: kubernetes.io/os
8686
operator: In
8787
values:
8888
- linux

.pipelines/mdnc/azure-cns-cni.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ spec:
8282
operator: NotIn
8383
values:
8484
- virtual-kubelet
85-
- key: beta.kubernetes.io/os
85+
- key: kubernetes.io/os
8686
operator: In
8787
values:
8888
- linux

.pipelines/npm/npm-cni-integration-test.yaml

+66-66
Original file line numberDiff line numberDiff line change
@@ -15,81 +15,81 @@ jobs:
1515
- job: npm_k8se2e
1616
displayName: "NPM k8s E2E"
1717
dependsOn: ${{ parameters.dependsOn }}
18-
condition: and( and( not(canceled()), not(failed()) ), ${{ or(contains(parameters.os_version, '2022'), eq(parameters.os, 'linux') ) }} , or( contains(variables.CONTROL_SCENARIO, 'npm') , contains(variables.CONTROL_SCENARIO, 'all') ) )
18+
condition: and( and( not(canceled()), not(failed()) ), ${{ or(contains(parameters.os_version, '2022'), and( eq(parameters.os, 'linux'), not(contains(parameters.clusterName, 'linux-podsub')) ) ) }} , or( contains(variables.CONTROL_SCENARIO, 'npm') , contains(variables.CONTROL_SCENARIO, 'all') ) )
1919
timeoutInMinutes: 180 # This is for testing windows, due to the 3m between the 14 tests -> results in 42m of wasted time
2020
pool:
2121
name: $(BUILD_POOL_NAME_DEFAULT)
2222
demands:
23-
- agent.os -equals Linux
24-
- Role -equals Build
23+
- agent.os -equals Linux
24+
- Role -equals Build
2525
steps:
2626
- ${{ if eq(parameters.os, 'linux') }}:
27-
- task: AzureCLI@2
28-
displayName: "Deploy NPM to Test Cluster"
29-
inputs:
30-
azureSubscription: ${{ parameters.sub }}
31-
scriptType: "bash"
32-
scriptLocation: "inlineScript"
33-
inlineScript: |
34-
set -ex
27+
- task: AzureCLI@2
28+
displayName: "Deploy NPM to Test Cluster"
29+
inputs:
30+
azureSubscription: ${{ parameters.sub }}
31+
scriptType: "bash"
32+
scriptLocation: "inlineScript"
33+
inlineScript: |
34+
set -ex
3535
36-
make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${{ parameters.clusterName }}
36+
make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${{ parameters.clusterName }}
3737
38-
# deploy azure-npm
39-
kubectl apply -f https://raw.githubusercontent.com/Azure/azure-container-networking/master/npm/azure-npm.yaml
40-
kubectl set image daemonset/azure-npm -n kube-system azure-npm=$IMAGE_REGISTRY/azure-npm:${{ parameters.tag }}
41-
kubectl rollout status -n kube-system daemonset/azure-npm
38+
# deploy azure-npm
39+
kubectl apply -f https://raw.githubusercontent.com/Azure/azure-container-networking/master/npm/azure-npm.yaml
40+
kubectl set image daemonset/azure-npm -n kube-system azure-npm=$IMAGE_REGISTRY/azure-npm:${{ parameters.tag }}
41+
kubectl rollout status -n kube-system daemonset/azure-npm
4242
43-
kubectl get po -n kube-system -owide -A
43+
kubectl get po -n kube-system -owide -A
4444
45-
# FQDN=`az aks show -n $CLUSTER_NAME -g $CLUSTER_NAME --query fqdn -o tsv`
46-
FQDN=`az aks show -g ${{ parameters.clusterName }} -n ${{ parameters.clusterName }} --query fqdn -o tsv`
47-
echo $FQDN
48-
echo "##vso[task.setvariable variable=FQDN]$FQDN"
45+
# FQDN=`az aks show -n $CLUSTER_NAME -g $CLUSTER_NAME --query fqdn -o tsv`
46+
FQDN=`az aks show -g ${{ parameters.clusterName }} -n ${{ parameters.clusterName }} --query fqdn -o tsv`
47+
echo $FQDN
48+
echo "##vso[task.setvariable variable=FQDN]$FQDN"
4949
50-
artifact=npm_k8s
51-
echo $artifact/e2e.test
52-
echo "##vso[task.setvariable variable=artifact]$artifact"
50+
artifact=npm_k8s
51+
echo $artifact/e2e.test
52+
echo "##vso[task.setvariable variable=artifact]$artifact"
5353
54-
- download: current
55-
artifact: npm_k8s
54+
- download: current
55+
artifact: npm_k8s
5656

5757
- ${{ if eq(parameters.os, 'windows') }}:
58-
- task: AzureCLI@2
59-
displayName: "Deploy Windows NPM to Test Cluster"
60-
inputs:
61-
azureSubscription: ${{ parameters.sub }}
62-
scriptType: "bash"
63-
scriptLocation: "inlineScript"
64-
inlineScript: |
65-
set -ex
66-
67-
make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${{ parameters.clusterName }}
68-
69-
# deploy azure-npm-win
70-
# Windows
71-
kubectl apply -f npm/examples/windows/azure-npm.yaml
72-
kubectl set image daemonset/azure-npm-win -n kube-system azure-npm=$IMAGE_REGISTRY/azure-npm:windows-amd64-${{ parameters.tag }}
73-
kubectl rollout status -n kube-system daemonset/azure-npm-win
74-
75-
# konnectivity agent tends to fail after rollout. Give it time to recover
76-
sleep 60
77-
# Taint Linux (system) nodes so windows tests do not run on them
78-
kubectl taint nodes -l kubernetes.azure.com/mode=system node-role.kubernetes.io/control-plane:NoSchedule
79-
80-
kubectl get po -n kube-system -owide -A
81-
82-
# FQDN=`az aks show -n $CLUSTER_NAME -g $CLUSTER_NAME --query fqdn -o tsv`
83-
FQDN=`az aks show -g ${{ parameters.clusterName }} -n ${{ parameters.clusterName }} --query fqdn -o tsv`
84-
echo $FQDN
85-
echo "##vso[task.setvariable variable=FQDN]$FQDN"
86-
87-
artifact=npm_k8s_windows
88-
echo $artifact/e2e.test
89-
echo "##vso[task.setvariable variable=artifact]$artifact"
90-
91-
- download: current
92-
artifact: npm_k8s_windows
58+
- task: AzureCLI@2
59+
displayName: "Deploy Windows NPM to Test Cluster"
60+
inputs:
61+
azureSubscription: ${{ parameters.sub }}
62+
scriptType: "bash"
63+
scriptLocation: "inlineScript"
64+
inlineScript: |
65+
set -ex
66+
67+
make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${{ parameters.clusterName }}
68+
69+
# deploy azure-npm-win
70+
# Windows
71+
kubectl apply -f npm/examples/windows/azure-npm.yaml
72+
kubectl set image daemonset/azure-npm-win -n kube-system azure-npm=$IMAGE_REGISTRY/azure-npm:windows-amd64-${{ parameters.tag }}
73+
kubectl rollout status -n kube-system daemonset/azure-npm-win
74+
75+
# konnectivity agent tends to fail after rollout. Give it time to recover
76+
sleep 60
77+
# Taint Linux (system) nodes so windows tests do not run on them
78+
kubectl taint nodes -l kubernetes.azure.com/mode=system node-role.kubernetes.io/control-plane:NoSchedule
79+
80+
kubectl get po -n kube-system -owide -A
81+
82+
# FQDN=`az aks show -n $CLUSTER_NAME -g $CLUSTER_NAME --query fqdn -o tsv`
83+
FQDN=`az aks show -g ${{ parameters.clusterName }} -n ${{ parameters.clusterName }} --query fqdn -o tsv`
84+
echo $FQDN
85+
echo "##vso[task.setvariable variable=FQDN]$FQDN"
86+
87+
artifact=npm_k8s_windows
88+
echo $artifact/e2e.test
89+
echo "##vso[task.setvariable variable=artifact]$artifact"
90+
91+
- download: current
92+
artifact: npm_k8s_windows
9393

9494
- bash: |
9595
set -e
@@ -126,12 +126,12 @@ jobs:
126126
continueOnError: ${{ parameters.continueOnError }}
127127
128128
- ${{ if eq(parameters.os, 'windows') }}:
129-
- bash: |
130-
# Untaint Linux (system) nodes once testing is complete
131-
kubectl taint nodes -l kubernetes.azure.com/mode=system node-role.kubernetes.io/control-plane:NoSchedule-
129+
- bash: |
130+
# Untaint Linux (system) nodes once testing is complete
131+
kubectl taint nodes -l kubernetes.azure.com/mode=system node-role.kubernetes.io/control-plane:NoSchedule-
132132
133-
displayName: Untaint Linux Nodes
134-
condition: always()
133+
displayName: Untaint Linux Nodes
134+
condition: always()
135135
136136
- bash: |
137137
npmLogs=$(System.DefaultWorkingDirectory)/${{ parameters.clusterName }}_npmLogs_Attempt_#$(System.StageAttempt)

.pipelines/singletenancy/cilium-overlay/cilium-overlay-e2e-step-template.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ parameters:
22
name: ""
33
clusterName: ""
44
testHubble: false
5+
testLRP: false
56
scaleup: ""
67

78

@@ -95,6 +96,16 @@ steps:
9596
retryCountOnTaskFailure: 3
9697
name: "CiliumStatus"
9798
displayName: "Cilium Status"
99+
# Run LRP test after cns and config with lrp enabled config deployed
100+
- ${{ if eq( parameters['testLRP'], true) }}:
101+
- script: |
102+
set -e
103+
cd test/integration/lrp/
104+
go test ./lrp_test.go -v -tags "lrp" -count=1 -run ^TestLRP$
105+
kubectl get pods -Aowide
106+
retryCountOnTaskFailure: 3
107+
name: "LRPTest"
108+
displayName: "Run Cilium Local Redirect Policy Test"
98109
99110
- task: AzureCLI@1
100111
inputs:

azure-ipam/go.mod

+10-12
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ module github.com/Azure/azure-container-networking/azure-ipam
22

33
go 1.23
44

5-
toolchain go1.23.2
6-
75
require (
8-
github.com/Azure/azure-container-networking v1.6.21
6+
github.com/Azure/azure-container-networking v1.6.22
97
github.com/containernetworking/cni v1.2.3
108
github.com/containernetworking/plugins v1.6.2
119
github.com/pkg/errors v0.9.1
@@ -17,11 +15,11 @@ require (
1715
require (
1816
code.cloudfoundry.org/clock v1.1.0 // indirect
1917
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0 // indirect
20-
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.1 // indirect
18+
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2 // indirect
2119
github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect
2220
github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets v0.12.0 // indirect
2321
github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 // indirect
24-
github.com/AzureAD/microsoft-authentication-library-for-go v1.3.2 // indirect
22+
github.com/AzureAD/microsoft-authentication-library-for-go v1.3.3 // indirect
2523
github.com/Microsoft/go-winio v0.6.2 // indirect
2624
github.com/Microsoft/hcsshim v0.12.9 // indirect
2725
github.com/avast/retry-go/v3 v3.1.1 // indirect
@@ -59,26 +57,26 @@ require (
5957
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
6058
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
6159
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
62-
github.com/prometheus/client_golang v1.20.5 // indirect
60+
github.com/prometheus/client_golang v1.21.1 // indirect
6361
github.com/prometheus/client_model v0.6.1 // indirect
64-
github.com/prometheus/common v0.61.0 // indirect
62+
github.com/prometheus/common v0.62.0 // indirect
6563
github.com/prometheus/procfs v0.15.1 // indirect
6664
github.com/sirupsen/logrus v1.9.3 // indirect
6765
github.com/vishvananda/netns v0.0.5 // indirect
6866
go.opencensus.io v0.24.0 // indirect
6967
go.uber.org/multierr v1.11.0 // indirect
7068
golang.org/x/crypto v0.33.0 // indirect
7169
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
72-
golang.org/x/net v0.34.0 // indirect
70+
golang.org/x/net v0.35.0 // indirect
7371
golang.org/x/oauth2 v0.24.0 // indirect
7472
golang.org/x/sync v0.11.0 // indirect
7573
golang.org/x/sys v0.30.0 // indirect
7674
golang.org/x/term v0.29.0 // indirect
7775
golang.org/x/text v0.22.0 // indirect
78-
golang.org/x/time v0.9.0 // indirect
79-
google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect
80-
google.golang.org/grpc v1.69.2 // indirect
81-
google.golang.org/protobuf v1.36.3 // indirect
76+
golang.org/x/time v0.10.0 // indirect
77+
google.golang.org/genproto/googleapis/rpc v0.0.0-20241202173237-19429a94021a // indirect
78+
google.golang.org/grpc v1.70.0 // indirect
79+
google.golang.org/protobuf v1.36.5 // indirect
8280
gopkg.in/inf.v0 v0.9.1 // indirect
8381
gopkg.in/yaml.v2 v2.4.0 // indirect
8482
gopkg.in/yaml.v3 v3.0.1 // indirect

0 commit comments

Comments
 (0)