Skip to content

Commit e8bf9c4

Browse files
authored
Merge branch 'master' into krouthu/service-tag
Signed-off-by: Keerthana Routhu <[email protected]>
2 parents 95c0891 + 965cd1f commit e8bf9c4

File tree

153 files changed

+9048
-1008
lines changed

Some content is hidden

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

153 files changed

+9048
-1008
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ jobs:
2929
go-version: "^1.23"
3030

3131
- name: Setup Kind
32-
uses: engineerd/setup-kind@v0.6.2
32+
uses: helm/kind-action@v1
3333
with:
34-
version: "v0.11.1"
34+
version: "v0.22.0"
35+
kubectl_version: "v1.27.7"
3536
config: ./test/kind/kind.yaml
36-
name: npm-kind
37+
cluster_name: npm-kind
3738

3839
- name: Check Kind
3940
run: |

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ linters:
1818
- gocritic
1919
- gocyclo
2020
- gofmt
21-
- gomnd
2221
- goprintffuncname
2322
- gosimple
2423
- lll
@@ -35,6 +34,7 @@ linters-settings:
3534
disabled-checks:
3635
- "hugeParam"
3736
govet:
38-
check-shadowing: true
37+
enable:
38+
- shadow
3939
lll:
4040
line-length: 200

.pipelines/cni/cilium/cilium-overlay-load-test-template.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ stages:
120120
echo "Deploy Azure-CNS"
121121
sudo -E env "PATH=$PATH" make test-integration AZURE_IPAM_VERSION=$(make azure-ipam-version) CNS_VERSION=$(make cns-version) INSTALL_CNS=true INSTALL_OVERLAY=true CNS_IMAGE_REPO=$(CNS_IMAGE_REPO)
122122
kubectl get po -owide -A
123+
kubectl get crd -A
123124
- ${{if eq(parameters.hubbleEnabled, true)}}:
124125
- job: deploy_cilium_components
125126
displayName: Deploy Cilium with Hubble
@@ -154,6 +155,7 @@ stages:
154155
echo "Deploy Azure-CNS"
155156
sudo -E env "PATH=$PATH" make test-integration AZURE_IPAM_VERSION=$(make azure-ipam-version) CNS_VERSION=$(make cns-version) INSTALL_CNS=true INSTALL_OVERLAY=true CNS_IMAGE_REPO=$(CNS_IMAGE_REPO)
156157
kubectl get po -owide -A
158+
kubectl get crd -A
157159
158160
- job: deploy_pods
159161
condition: and( and( not(canceled()), not(failed()) ), or( contains(variables.CONTROL_SCENARIO, 'scaleTest') , contains(variables.CONTROL_SCENARIO, 'all') ) )
@@ -218,7 +220,7 @@ stages:
218220
displayName: "Get AKS Cluster"
219221
- script: |
220222
kubectl delete ns load-test
221-
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption'
223+
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption,!check-log-errors,!no-unexpected-packet-drops'
222224
retryCountOnTaskFailure: 6
223225
name: "CiliumConnectivityTests"
224226
displayName: "Run Cilium Connectivity Tests"

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ stages:
174174
name: cilium_overlay_nightly
175175
clusterName: ciliumnightly
176176
steps:
177+
- template: ../../templates/k8s-yaml-test.yaml
178+
parameters:
179+
clusterName: $(clusterName)-$(commitID)
180+
177181
- template: ../../templates/delete-cluster.yaml
178182
parameters:
179183
name: $(name)

.pipelines/cni/load-test-templates/create-cluster-template.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ steps:
2323
AZCLI=az REGION=${{ parameters.region }} SUB=$(SUB_AZURE_NETWORK_AGENT_BUILD_VALIDATIONS) \
2424
CLUSTER=${{ parameters.clusterName }} NODE_COUNT=${{ parameters.nodeCount }} NODE_COUNT_WIN=${{ parameters.nodeCountWin }} \
2525
VM_SIZE=${{ parameters.vmSize }} VM_SIZE_WIN=${{ parameters.vmSizeWin }} \
26-
WINDOWS_USERNAME=${WINDOWS_USERNAME} WINDOWS_PASSWORD=${WINDOWS_PASSWORD} \
2726
OS_SKU=${{ parameters.osSKU }} OS_SKU_WIN=${{ parameters.osSkuWin }} OS=${{ parameters.os }}
2827
echo "Cluster successfully created"
2928

.pipelines/cni/lsg/lsg-cni-intergration-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ stages:
218218
displayName: "Get AKS Cluster"
219219
- script: |
220220
kubectl delete ns load-test
221-
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption'
221+
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption,!check-log-errors'
222222
retryCountOnTaskFailure: 6
223223
name: "CiliumConnectivityTests"
224224
displayName: "Run Cilium Connectivity Tests"

.pipelines/cni/pipeline.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ stages:
164164
- template: singletenancy/cniv1-template.yaml
165165
parameters:
166166
name: win22_cniv1
167-
clusterType: windows-cniv1-up
167+
clusterType: cniv1-up
168168
clusterName: "win22-cniv1"
169169
nodeCount: ${NODE_COUNT_WINCLUSTER_SYSTEMPOOL}
170170
nodeCountWin: ${NODE_COUNT_WIN}
@@ -229,7 +229,7 @@ stages:
229229
- template: singletenancy/cniv1-template.yaml
230230
parameters:
231231
name: linux_cniv1
232-
clusterType: linux-cniv1-up
232+
clusterType: cniv1-up
233233
clusterName: "linux-cniv1"
234234
nodeCount: ${NODE_COUNT_LINUX}
235235
vmSize: ${VM_SIZE}

.pipelines/cni/singletenancy/cniv1-template.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ stages:
5757
vmSizeWin: ${{ parameters.vmSizeWin }}
5858
region: $(location)
5959
osSKU: ${{ parameters.osSKU }}
60+
os: ${{ parameters.os }}
6061

6162
# If ensures that only windows template calls are compared against the below condition
6263
# Condition confirms that:

.pipelines/networkobservability/pipeline.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ stages:
116116
- script: |
117117
echo "Run Cilium Connectivity Tests"
118118
cilium status
119-
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption'
119+
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption,!check-log-errors'
120120
retryCountOnTaskFailure: 3
121121
name: "ciliumConnectivityTests"
122122
displayName: "Run Cilium Connectivity Tests"

.pipelines/npm/npm-conformance-tests.yaml

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ stages:
110110
AZURE_CLUSTER: "conformance-v2-linux-stress"
111111
PROFILE: "v2-background"
112112
IS_STRESS_TEST: "true"
113+
v2-place-first:
114+
AZURE_CLUSTER: "conformance-v2-place-first"
115+
PROFILE: "v2-place-first"
116+
IS_STRESS_TEST: "false"
113117
pool:
114118
name: $(BUILD_POOL_NAME_DEFAULT)
115119
demands:
@@ -251,15 +255,23 @@ stages:
251255
set -e
252256
make -C ./hack/aks set-kubeconf AZCLI=az GROUP=$(RESOURCE_GROUP) CLUSTER=$(AZURE_CLUSTER)
253257
254-
# sig-release provides test suite tarball(s) per k8s release. Just need to provide k8s version "v1.xx.xx"
255-
# pulling k8s version from AKS.
256-
eval k8sVersion="v"$( az aks show -g $(RESOURCE_GROUP) -n $(AZURE_CLUSTER) --query "currentKubernetesVersion")
257-
echo $k8sVersion
258-
curl -L https://dl.k8s.io/$k8sVersion/kubernetes-test-linux-amd64.tar.gz -o ./kubernetes-test-linux-amd64.tar.gz
259-
260-
# https://github.com/kubernetes/sig-release/blob/master/release-engineering/artifacts.md#content-of-kubernetes-test-system-archtargz-on-example-of-kubernetes-test-linux-amd64targz-directories-removed-from-list
261-
# explictly unzip and strip directories from ginkgo and e2e.test
262-
tar -xvzf kubernetes-test-linux-amd64.tar.gz --strip-components=3 kubernetes/test/bin/ginkgo kubernetes/test/bin/e2e.test
258+
if [ $(PROFILE) == "v2-place-first" ]; then
259+
git clone --depth=1 --branch=huntergregory/service-types https://github.com/huntergregory/network-policy-api.git
260+
cd network-policy-api/cmd/policy-assistant
261+
make policy-assistant
262+
cd ../../..
263+
mv network-policy-api/cmd/policy-assistant/cmd/policy-assistant/policy-assistant .
264+
else
265+
# sig-release provides test suite tarball(s) per k8s release. Just need to provide k8s version "v1.xx.xx"
266+
# pulling k8s version from AKS.
267+
eval k8sVersion="v"$( az aks show -g $(RESOURCE_GROUP) -n $(AZURE_CLUSTER) --query "currentKubernetesVersion")
268+
echo $k8sVersion
269+
curl -L https://dl.k8s.io/$k8sVersion/kubernetes-test-linux-amd64.tar.gz -o ./kubernetes-test-linux-amd64.tar.gz
270+
271+
# https://github.com/kubernetes/sig-release/blob/master/release-engineering/artifacts.md#content-of-kubernetes-test-system-archtargz-on-example-of-kubernetes-test-linux-amd64targz-directories-removed-from-list
272+
# explictly unzip and strip directories from ginkgo and e2e.test
273+
tar -xvzf kubernetes-test-linux-amd64.tar.gz --strip-components=3 kubernetes/test/bin/ginkgo kubernetes/test/bin/e2e.test
274+
fi
263275
264276
displayName: "Setup Environment"
265277

@@ -280,8 +292,13 @@ stages:
280292
echo $FQDN
281293
282294
runConformance () {
283-
KUBERNETES_SERVICE_HOST="$FQDN" KUBERNETES_SERVICE_PORT=443 ./e2e.test --provider=local --ginkgo.focus="NetworkPolicy" --ginkgo.skip="SCTP" --kubeconfig=./kubeconfig
284-
# there can't be a command after e2e.test because the exit code is important
295+
if [ $(PROFILE) == "v2-place-first" ]; then
296+
# 15 minute timeout for creating LoadBalancer with Azure-internal "external IPs"
297+
./policy-assistant generate --noisy=true --job-timeout-seconds=2 --pod-creation-timeout-seconds 900 --server-protocol TCP,UDP --ignore-loopback --include special-services --exclude cni-brings-source-pod-info-to-other-node
298+
else
299+
KUBERNETES_SERVICE_HOST="$FQDN" KUBERNETES_SERVICE_PORT=443 ./e2e.test --provider=local --ginkgo.focus="NetworkPolicy" --ginkgo.skip="SCTP" --kubeconfig=./kubeconfig
300+
fi
301+
# there can't be a command after e2e.test/policy-assistant because the exit code is important
285302
}
286303
287304
runConformanceWindows () {

0 commit comments

Comments
 (0)