Граф коммитов

324 Коммитов

Автор SHA1 Сообщение Дата
John Payne 27401874e1
ci:[CNI] ACN PR Pipeline speed improvements (#2077)
* Move Create Cluster

* Lower Windows scaleup

* Delete echo-external-node for Cilium validate

* Change cluster creation from job to stage

* Decrease k8utils retry delay time

* Adjust submodule pipeline

* Remove test comments

* Addressing Comments

* Add delete cluster template

* Single Stage Delete

* ACN merge commitID fix

* Addressing Comments

* Refactor dualstack from #2098
2023-08-14 17:08:45 +00:00
Paul Yu 9604aeaf7a
dualstack overlay linux testcases and windows checker (#2098)
dualstack linux test cases and windows checkers
2023-08-10 05:01:31 +00:00
John Payne a82e39ec9b
ci: [CNI] [NPM] Add NPM|CNI integration test to load-test pipeline. (#2105)
* ci: [CNI] [NPM] Add NPM|CNI integration test to load-test pipeline

* Change artifact name

* vmSize Increase

* Addressing comments
2023-08-09 18:02:50 -07:00
John Payne f0d14139a9
ci: Enable /azp run for submodule pipeline (#2106) 2023-08-09 22:25:20 +00:00
Vipul Singh e6a8ea6be7
ci: adding cni package as a trigger (#2108) 2023-08-09 01:51:34 +00:00
John Payne bbf2fd43c7
ci: Update dns tests for k8s conformance (#2104)
Update dns tests for k8s v1.26
2023-08-08 23:44:05 +00:00
John Payne 14b916b980
ci: Paramterize test-validate-state (#2109) 2023-08-08 11:27:45 -07:00
Vipul Singh de87423d19
CI: add variable for node count (#2088) 2023-08-02 19:51:47 +00:00
Vipul Singh 7a41178f49
feat: [dropgz] Dropgz for windows (#2075)
* feat: [dropgz] Dropgz for windows

* Removing the code for killing the process from dropgz for windows
2023-08-01 09:06:14 -07:00
Matthew Long 0c60fc3a08
chore: add release branches to pr pipeline trigger (#2095) 2023-07-31 23:19:07 +00:00
Matthew Long a7d8c6c64f
test: add azure cni overlay e2e (#2073) 2023-07-31 20:05:03 +00:00
John Payne 3658951a7b
ci:[CNI] Windows datapath using k8se2e template (#2041)
* Initial Commit

* Expensive Datapath

* Tarball Datapath

* Templatize

* Add networking conformance tests
2023-07-28 15:06:56 -07:00
Vipul Singh b45c2c71c6
CI: Removing AKS engine related code (#2089) 2023-07-28 00:54:57 +00:00
Camryn Lee ca02c14d6d
ci: add cilium identities check to nightly pipeline (#2071)
* ci: add cilium identities check to nightly pipeline

* fix: typo and address comments for additional logging
2023-07-25 19:26:49 +00:00
John Payne 9ec663c34a
ci:[CNI] Remove load balancer tests and add rollout status for konnectivity-agent in ACN PR pipeline (#2072)
* Remove Loadbalancer Tests

* Add status check for konnectivity agent
2023-07-25 09:29:17 -07:00
John Payne 451c691a57
ci:[CNI] Replace AKS-Engine Tests with k8s conformance tests (#2062)
* Initial Commit

* Add attempts to prevent flakyness

* Add taint for windows tests

* Add k8s e2e tests

* Testing vmSizes

* Artifact k8se2e binary

* Remove NPM E2E

* Add testing and increase processes

* Addressing comments
2023-07-21 19:42:13 +00:00
Hunter Gregory ebddca18bd
perf: [NPM] [LINUX] add NetPols in background (#1969)
* wip: apply dirty NetPols every 500ms in Linux

* only build npm linux image

* fix: check for empty cache

* feat: toggle for netpol interval. default 500 ms

* ci: remove stages "build binaries" and "run windows tests"

* wip: max batched netpols (toggle-specified)

* ci: remove manifest build/push for win npm

* wip: handle ipset deletion properly and max batch for delete too

* fix: correct remove policy

* fix: only remove policy if it was in kernel

* finalize toggles, allowing ability to turn off iptablesInBackground

* ci: conf + cyc use PR's configmaps

* fix: lints

* fix dp toggle: iptablesInBackground

* fix lock typo and config logging

* fix background thread. add comments. only add tmp ref when enabled

* copy pod selector list

* fix: removepolicy needs namespace too

* rename opInfo to event

* fix: fix references and prevent concurrent map read/write

* tmp: debug logging

* fix: missing set references by swap keys and values

* Revert "tmp: debug logging"

This reverts commit 70ed34c714ea4a6d009a1fe90a7168be4bedd5bf.

* fix: add podSelectorList to fake NetPol

* log: do not print error when failing to delete non-existent nft rule

* log: verbose iptables bootup

* log: use fmt.Errorf for clean logging

* log: never return error for iptables in background and fix some lints

* fix: activate/deactivate azure chain rules

* fix: correctly decrement netpols in kernel

* ci: run UTs again

* ci: update profiles. default to placefirst=false

* address comment: rename batch to pendingPolicy

* refactor: make dirty cache  OS-specific

* test: UTs

* test: put UT cfg back to placefirst to not break things

* ci: update cyclonus workflows

* fmt: address comment & lint

* fmt: rename numInKernel to policiesInKernel

* log: switch to fmt.Errorf

* fmt: whitespace

* feat: resiliency to errors while reconciling dirty netpols

* log: temporarily print everything for ipset restore

* fix: remove nomatch from ipset -D for cidr blocks

* test: UTs for non-happy path

* test: fix hns fake

* fix: don't change windows. let it delete ipsets when removing policies

* fix windows lint

* fix: ignore chain doesn't exist errors for iptables -D

* feat: latency and failure metrics

* test: update exit code for UT

* metrics: new metrics should go in node-metrics path

* style: simplify nesting

* style: move identical windows & linux code to shared file

* ci: remove v1 conformance and cyclonus

* feat: add NetPols in background from the DP (revert background code in pMgr)

* style: remove "background" from iptables metrics

* revert changes in ipsetmanager, const.go, and dp.Remove/UpdatePolicy

* style: whitespace

* perf: use len() instead of creating slice from map

* remove verbosity for iptables bootup

* build: add return statement

* style: whitespace

* build: fix variable shadowing

* build: fix more import shadowing

* build: windows pointer issue and UT issue

* test: fix UT for iptables error code 2

* ci: enable linux scale test

* ci: revert to master pipeline.yaml

* revert changes to chain-management. do changes in PR #2012

* log: change wording

* test: UTs for netpol in background

* log: wording

* feat: apply ipsets for each netpol individually

* config: rearrange ConfigMap & update capz yaml

* fix: windows bootup phase logic for addpolicy

* feat: restrict netpol in background to linux + nftables

* test: skip nftables check for UT

* style: netpols[0] instead of loop

* log: address log comments

* style: lint for long line

---------

Co-authored-by: Vamsi Kalapala <vakr@microsoft.com>
2023-07-19 09:13:52 -07:00
Thomas Ricci 53ea9ec89b
Adding cni and cns deamonset specs to target managed DNC scenario (#2051)
* adding cni and cns deamonset specs to target managed DNC scenario (Open AI)

* initializing CNI v1.4.35 via dropgz

* adding volume for cni init

* point to azure-swift.conflist

* PR feedback
2023-07-18 03:18:09 +00:00
Vipul Singh 8f5a2b20c4
ci: [Cilium] Add CNS and dropgz version as pipeline params (#2058) 2023-07-14 23:56:22 +00:00
Vipul Singh c1a1408887
ci:[CNI] Update pool name for cni load test pipeline (#2036) 2023-07-14 17:59:55 +00:00
Vipul Singh 846e508b17
ci: [CNI] Adding aks cluster creation steps for k8s e2e test (#2052)
* ci: [CNI] Adding aks cluster creation steps for k8s e2e test

* Add  validate step to the pipeline

* Adding the telemetry config to the cluster
2023-07-13 20:40:26 -07:00
Camryn Lee e9257ed8df
ci: validate CNS in-memory state after restart (#2049)
* validate pod states after cns restart

* update job

* wait for cns to complete restart

* update pipeline log

* update pipeline log
2023-07-13 20:37:58 -07:00
Vipul Singh e45ad213d5
ci:[CNI] Windows cniv1 load test pipeline (#2024)
CI:[CNI] Windows cniv1 load test pipeline
2023-06-28 15:06:47 -04:00
tamilmani1989 ca266b1667
Add wireserver and metadata connecitivity tests to cilium and swift pipeline (#2006)
* Block wireserver connectivity from pods in cilium cluster

* commenting arm build image step

* enabling arm image build

* fixed wget cmd and added test for overlay

* fixed wget-job.yaml

* fixed scripts

* get job yaml for debugging on failure

* Updated scripts.
Included wireserver test for swift pipeline
Reverted pipeline.yaml changes

* update cilium agent to include init container which blocks wireserver access

* update cilium agent with init container which blocks wireserver access
2023-06-19 09:57:10 -07:00
John Payne 9627a4fde2
ci:[CNI] Add Retry to connectivity test (#2015)
ci: Add Retry to connectivity test
2023-06-19 09:56:28 -07:00
Vipul Singh e0d0856297
CI:[CNI] Templatise CNI load test pipeline yaml (#2011) 2023-06-16 04:25:57 +00:00
Paul Johnston 5f53f7a625
Removing a network policy test that is unreliable (#2017) 2023-06-16 01:58:19 +00:00
Vipul Singh 6b805e5eb3
fix: Updating the vmsize for e2e cilium to avoid resource scarcity (#2014)
CI: Testing the e2e test for cilium
2023-06-14 01:17:24 +00:00
John Payne 1514d95cce
ci: [CNI] Move Nightly Cilium Pipeline test to ACN (#1963)
* CNS to be able to generate dualstack overaly CNI conflist (#1981)

* fix: Eliminating duplicate lines

* ci: Add update permission for ciliumidentity

* fix: Parameterize Image Registry

add retry to nnc update during scaledown (#1970)

* add retry to nnc update during scaledown

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* test for panic in pool monitor

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

---------

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

fix: reserve 0th IP as gateway for overlay on Windows (#1968)

* fix: reserve 0th IP as gateway for overlay on Windows

* fix: allow gateway to be updated

ci: windows profile container image (#1988)

Always use 0 for NC version in Overlay (#1979)

always use 0 for NC version in overlay

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

[Vnet Scale - CNS]: Flattening CIDR ranges for Node NNC to a list (#1921)

* Read secondary CIDRs from VnetScale NNC

* fix comment

* update comment

* For VnetScale mode, Use 1st IP for def gateway instead of 0th for windows

* fix/add import

* address pr comments

* add comments

* address pr comments

* wrap error

* fix typo

* fix UT

fix: [NPM] check if policy exists in case of nil pointer (#1974)

fix: check for nil first

ci: disable kube-proxy for test clusters (#1965)

* disable kube-proxy for byocni cluster creation

* test config mapping

* shell pwd

* use CURDIR

* check current directory

* test with repo root dir

* test azp format

* test azp format

* test azp format

* change e2e steps to remove kube proxy

* fix load test update args

* fix ns and rg in update

* update ciliume2e

* fix kubectl cmd in load test

* adding new targets for no kube proxy

* remove cluster update

* update overlay e2e

* test behavior of load test

* test grep for azure-cns

* look for container deployment

* testing

* restart node variable check

* update if condition

* add skip node case

---------

Co-authored-by: tamilmani1989 <tamanoha@microsoft.com>

perf: [WIN-NPM] fast bootup (#1900)

* wip

* wip2

* use other apply DP func

* address comment about if statement

* finish bootup for both DPs

* fix lint

* fix lint 2

* fix lint 3

* longer UT timeout and add missing UTs for apply in background

tool: [NPM] script to clean up iptable chains (#1978)

tool: script to clean up NPM iptable chains

feat: [WIN-NPM] metrics for latencies and failures (#1959)

* implement metrics

* add npm prefix

* rename windows files

* metrics pkg UTs

* allow reinitializing prometheus metrics

* fix: hns wrapper should not throw error for empty SetPolicy values

* test: metric UTs in dataplane

* fix: record list endpoint latency always

* remove flaky UT

* feat: metric for max ipset members

* fix lint

* fix lint 2

* fix build

* fix lint 3

* simplify conditionals and protect against maxMembers becoming negative

* remove bottom 4 histogram buckets. start at 16 ms

* reset metrics for ipset UTs

* style: don't check for windows dp in *_windows.go files

* build: remove unused import

* test: reset windows metrics in UT

Remove SSH port 22 rule from aks-engine clusters (#1983)

ci: change overlaye2e stage to cilium-overlay (#1997)

* renaming overlaye2e for cilium

* update display names for stages

Initial getHomeAZ 404 changes (#1994)

* initial getHomeAZ 404 changes

* treat 404 as success

* address comments

CNS to be able to generate dualstack overaly CNI conflist (#1981)

fix: Parameterize Image Registry

add retry to nnc update during scaledown (#1970)

* add retry to nnc update during scaledown

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* test for panic in pool monitor

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

---------

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

fix: reserve 0th IP as gateway for overlay on Windows (#1968)

* fix: reserve 0th IP as gateway for overlay on Windows

* fix: allow gateway to be updated

ci: windows profile container image (#1988)

Always use 0 for NC version in Overlay (#1979)

always use 0 for NC version in overlay

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

[Vnet Scale - CNS]: Flattening CIDR ranges for Node NNC to a list (#1921)

* Read secondary CIDRs from VnetScale NNC

* fix comment

* update comment

* For VnetScale mode, Use 1st IP for def gateway instead of 0th for windows

* fix/add import

* address pr comments

* add comments

* address pr comments

* wrap error

* fix typo

* fix UT

fix: [NPM] check if policy exists in case of nil pointer (#1974)

fix: check for nil first

ci: disable kube-proxy for test clusters (#1965)

* disable kube-proxy for byocni cluster creation

* test config mapping

* shell pwd

* use CURDIR

* check current directory

* test with repo root dir

* test azp format

* test azp format

* test azp format

* change e2e steps to remove kube proxy

* fix load test update args

* fix ns and rg in update

* update ciliume2e

* fix kubectl cmd in load test

* adding new targets for no kube proxy

* remove cluster update

* update overlay e2e

* test behavior of load test

* test grep for azure-cns

* look for container deployment

* testing

* restart node variable check

* update if condition

* add skip node case

---------

Co-authored-by: tamilmani1989 <tamanoha@microsoft.com>

perf: [WIN-NPM] fast bootup (#1900)

* wip

* wip2

* use other apply DP func

* address comment about if statement

* finish bootup for both DPs

* fix lint

* fix lint 2

* fix lint 3

* longer UT timeout and add missing UTs for apply in background

tool: [NPM] script to clean up iptable chains (#1978)

tool: script to clean up NPM iptable chains

feat: [WIN-NPM] metrics for latencies and failures (#1959)

* implement metrics

* add npm prefix

* rename windows files

* metrics pkg UTs

* allow reinitializing prometheus metrics

* fix: hns wrapper should not throw error for empty SetPolicy values

* test: metric UTs in dataplane

* fix: record list endpoint latency always

* remove flaky UT

* feat: metric for max ipset members

* fix lint

* fix lint 2

* fix build

* fix lint 3

* simplify conditionals and protect against maxMembers becoming negative

* remove bottom 4 histogram buckets. start at 16 ms

* reset metrics for ipset UTs

* style: don't check for windows dp in *_windows.go files

* build: remove unused import

* test: reset windows metrics in UT

Remove SSH port 22 rule from aks-engine clusters (#1983)

ci: change overlaye2e stage to cilium-overlay (#1997)

* renaming overlaye2e for cilium

* update display names for stages

Initial getHomeAZ 404 changes (#1994)

* initial getHomeAZ 404 changes

* treat 404 as success

* address comments

CNS to be able to generate dualstack overaly CNI conflist (#1981)

* fix: File Directory

* style: Comments

* Addressing Comments

---------

Co-authored-by: Paul Johnston <35265851+pjohnst5@users.noreply.github.com>
2023-06-09 11:52:15 -07:00
Hunter Gregory 940a7a73d0
ci: [NPM] improve scale pipeline & fix edge case in scale script (#1975)
* ci: check if directory is empty before applying it

* ci: don't wait for pods if they weren't created

* docs: fix script name

* ci: wip for enabling linux scale test

* ci: parameters for linux vs windows

* ci: adjust params

* ci: fix bash typo

* ci: fix cp

* ci: fix npm url

* ci: increase max pods for linux nodepool

* ci: start building windows image again

* tmp: use apply netpol in background image

* Revert "tmp: use apply netpol in background image"

This reverts commit eff43c5439.

* refactor: use CLUSTER_NAME variable

* ci: require succeeded() for scale & conformance tests

* test: fix vars used in test-scale.sh checks

* ci: disable linux, reenable windows

* ci: increase sleep before waiting for NPM to start & log info when it doesn't

* ci: better log capture & remove command from other pipeline

* ci: do not get logs of npm on kwok nodes

* ci: do not get logs of npm on kwok nodes (part 2)
2023-06-09 10:00:03 -07:00
Vipul Singh 008ae45f9b
CI: [CNI] Replace the bash scripts for CNI load testing with golang test cases (#2003)
CI:[CNI] Replace the bash scripts with the golang test cases
2023-06-08 17:17:32 -07:00
Paul Yu 7743fda347
remove udp port 3389 (#1998)
remove port 3389
2023-06-07 18:27:17 +00:00
Camryn Lee 5b7aa6e9a1
ci: change overlaye2e stage to cilium-overlay (#1997)
* renaming overlaye2e for cilium

* update display names for stages
2023-06-06 02:18:46 +00:00
Paul Johnston 9fd24cc9c1
Remove SSH port 22 rule from aks-engine clusters (#1983) 2023-06-05 22:52:25 +00:00
Camryn Lee 024819d774
ci: disable kube-proxy for test clusters (#1965)
* disable kube-proxy for byocni cluster creation

* test config mapping

* shell pwd

* use CURDIR

* check current directory

* test with repo root dir

* test azp format

* test azp format

* test azp format

* change e2e steps to remove kube proxy

* fix load test update args

* fix ns and rg in update

* update ciliume2e

* fix kubectl cmd in load test

* adding new targets for no kube proxy

* remove cluster update

* update overlay e2e

* test behavior of load test

* test grep for azure-cns

* look for container deployment

* testing

* restart node variable check

* update if condition

* add skip node case

---------

Co-authored-by: tamilmani1989 <tamanoha@microsoft.com>
2023-06-02 12:56:16 -07:00
Mathew Merrick 20a3fc298d
ci: windows profile container image (#1988) 2023-05-31 17:12:42 -07:00
Hunter Gregory ce11a8da2b
ci: [NPM] scale test pipeline using KWOK (#1915)
* wip

* temporarily disable most conf runs

* update readme

* back to raw yamls and clone the branch to run scale test

* fix raw yaml URLs

* fix inline script

* fix length of rg name

* uncomment all conf again

* comment out everything unnecessary for testing

* remove commented out dependencies

* use master branch for pipeline

* label nodes

* multiple nodes

* uncomment rest of conformance pipeline (originally commented for testing)

* fix print out for time taken in test-connectivity.sh

* fix: run kwok command in background

* mkdir for kwok log

* try azure cli 1 to fix login error

* Revert "try azure cli 1 to fix login error"

This reverts commit f1671e3939.

* move scale test to new pipeline yaml

* remove scale test from conformance pipeline yaml

* revert name change for cyclonus job

* remove unnecessary image build and variable

* error codes and display names

* change sleep and wait for npm logic

* look at directory

* use pre-cloned repo

* fix directory path

* install kubectl first

* FIXME: comment out succeeded condition

* kubectl binary arg

* kubectl for scale test

* fix label selector

* fix kubectl path

* fix kubectl binary arg

* fix kwok, more steps

* FIXME: temporarily use custom fast image

* fix kwok pid and add comment

* 10m timeout for connectivity after crud

* fix kwok command invocation

* bump up timeouts for testing

* higher memory limit

* add note to connectivity script

* fix sed

* no need to curl npm yaml

* tmp: comment things out to test final step

* only check if kwok pods are running, not necessarily ready

* Revert "tmp: comment things out to test final step"

This reverts commit 7b21125ab1.

* update registry keys to fix HNS reliability

* update regkey code

* sleep to let NPM restart in case of bootup failure

* adaptive wait timeout

* change some errors to warnings

* log date

* make sure all pods are labeled

* delete and readd labels after deleting pods

* tmp: skip large scale up and connectivity check for testing

* fix overwrite arg

* rename tasks and uncomment things

* update command for updating reg key

* make timeout logic simpler

* back to reg add command for regkeys

* official timeouts instead of test values

* delete task updating registry keys and stop hardcoding npm image

* increase sleep
2023-05-18 09:57:21 -07:00
Camryn Lee 47a358ca4a
ci: fix cilium validate state check for PRs (#1962)
* updating validate state check

* fix cluster create

* remove makefile changes
2023-05-17 22:55:33 +00:00
Hunter Gregory 62e7e1939e
ci: [WIN-NPM] mitigate Cyclonus infra issues (#1958) 2023-05-16 17:10:10 -07:00
Camryn Lee f955ae08f0
ci: cilium load test uses cns write conflist (#1928)
* change cilium install method

* update deploy cil stage

* cns writes cilium conflist

* adding cns ds

* delete deployment container, too many pods

* reuse cns ds from pr pipeline

* update cns + dropgz versions in ds for load test pipeline

* revert back to separate cns ds

* revert change for cns/daemonset.yaml

---------

Co-authored-by: Paul Yu <129891899+paulyufan2@users.noreply.github.com>
2023-05-01 19:49:30 +00:00
Paul Yu b02110f59a
Dualstack overlay cni (#1925) 2023-04-29 14:50:44 -07:00
Vipul Singh dcd55b32d0
ci: [CNI] Add restart node in stage in the load test of cni pipeline (#1916) 2023-04-21 03:19:17 +00:00
Camryn Lee 3f1c159256
ci: validate pods and systemd-networkd restart for PRs (#1909)
* update script to check cns in memory and add to pr pipeline

* adding stage to both overlay and podsubnet cilium stages

* add exit case if priveleged pod is not found

* check status of priv pod

* call ds status before exit

* install cilium ds with kubectl and not helm for systemd-networkd initcontainer patch

* upload cilium ds

* adding files for cilium-agent and cilium-operator deployment

* update cilium ds

* addressing comments
2023-04-19 11:20:22 -07:00
Hunter Gregory d7fc7e257c
ci: [WIN-NPM] remove ws19 build (#1844)
* remove NPM build for ws19

* set OS versions by variable in manifest-build

---------

Co-authored-by: Vamsi Kalapala <vakr@microsoft.com>
2023-04-11 14:34:58 -07:00
Vipul Singh 44fb03eb5f
ci: [CNI] Load testing for cilium cni (#1871)
ci:[CNI] Load testing for cilium cni
2023-04-11 18:39:51 +00:00
Hunter Gregory 83104c74f9
ci: [WIN-NPM] fix download failures in Cyclonus Pipeline (#1903)
remove artifact download for cyclonus test
2023-04-10 09:34:30 -07:00
Evan Baker 358de20d2c
Add multiplat Windows 2019 and 2022 image support to tooling and pipelines, use for CNS/NPM (#1820)
* build: add ws2019 cns image to build pipeline

* add windows2019 build pool

* fix: npm pipelines

* fix: npm pipelines

* update multiplat build process for winver flavors

* optional buildx push for npm cyclonus

---------

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
Co-authored-by: Matthew Long <61910737+thatmattlong@users.noreply.github.com>
Co-authored-by: Matthew Long <Matthew.Long@microsoft.com>
2023-03-01 00:25:00 +00:00
Evan Baker bcbb60561a
update cilium version to fix pipelines (#1763)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2023-01-19 00:26:59 +00:00
Hunter Gregory 702196639a
test: [NPM-LINUX] update linux conformance binary (#1748)
* update linux conformance binary

* temporarily comment out test profiles until one works

* Revert "temporarily comment out test profiles until one works"

This reverts commit db623d3833.

* undo change to git checkout for windows
2023-01-17 11:40:27 -08:00
shchen abd0772432
Updated aks-engine to unblock the pipeline. (#1745)
* Updated aks-engine to unblock the pipeline.

* Use the latest aks-e dependancy.

* Update aks-e dependency to unblock acn pipeline and set retry to 0 to
get quick result.
2023-01-06 17:50:26 -06:00
aegal 376d03bcbc
Revert linux e2e removal (#1731)
Co-authored-by: estebancams <101819268+estebancams@users.noreply.github.com>
Co-authored-by: Camryn Lee <31013536+camrynl@users.noreply.github.com>
2023-01-04 13:54:38 -08:00
estebancams 26dd052a62
remove windows 2004 aks-e tests from pipeline (#1736)
* feat: remove windos 2004 aks-e tests from pipeline

* fix: dependency on cleanup stage

Co-authored-by: Esteban Capillo <estebancams@microsoft.com>
2023-01-04 10:32:22 -06:00
estebancams ef1bff6046
Migrate powershell docker scripts to docker@2 (#1666)
* feat: migrate powershell docker scripts to docker@2

* feat: added retry to docker task

* fix: added repo info for image push step

* fix: added missing parameters for windows template parents

* fix: removed debugging lines

Co-authored-by: Esteban Capillo <estebancams@microsoft.com>
2022-11-17 10:14:45 -06:00
Camryn Lee b0efb9c94d
cancel pipeline on tag change (#1661)
* test repo trigger

* add resources label

* add repositories under resources

* test with endpoint

* testing with tag check

* typo in condition line

* evaulate version in condition

* compare tag vars

* test cancellation stage

* add job to cancel stage

* change name of cancel stage

* add pool and msg to cancel job

* change cancellation dependency

* add second tag validation stage

* spcaing ofvalidation1

* test ne and cancellation script

* check tag versions

* set currentTagx variable

* test new tag var

* fix value mapping

* check_tag job

* update current tag in manifest stage

* reading tags

* adjust variable assignment

* uncomment sleep

* read out different tags

* test validation dependency

* use succeeded/failed in condition check

* fix condition

* fix call to succeeded()

* omit condition on validation stages to read tags

* remove sleep, just validate condition

* fix error with submod swift naming
2022-11-14 22:36:59 +00:00
Evan Baker d2f74832c8
Revert "skip podtocidr(1.1.1.1:80) tests in cilium connectivity tests" (#1700)
Revert "skip podtocidr(1.1.1.1:80) tests in cilium connectivity tests (#1698)"

This reverts commit 39b6a33e6b.
2022-11-13 16:29:47 -06:00
Camryn Lee 0c5c12af38
Add Cilium on AKS Overlay e2e scenario (#1609)
* add hack overlay make target and e2e templates

* update pipeline.yaml with new overlay stage

* use dropgz/overlay-byocni in acn pr and submodule pipeline

* name overlay clusters for submodule pipeline

* modify dropgz setup

* test ipam + overlay

* use azilium conflist

* add overlay configmap

* add deployment of ip-masq-agent to cluster

* set flag in ip-masq-agent deployment

* update deployment

* configmap creation
2022-11-12 18:03:17 +00:00
Camryn Lee 39b6a33e6b
skip podtocidr(1.1.1.1:80) tests in cilium connectivity tests (#1698)
* skip failing pod-to-cidr tests

* fix skip command
2022-11-11 14:55:37 -06:00
Evan Baker 5e93d4ab70
Parameterize and tidy up the hackfile, use region variable in pipelines (#1688)
* parameterize and tidy up the hackfile

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* use region variable in pipelines when building clusters

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-11-02 15:49:42 -05:00
Hunter Gregory 4d2331d960
test: [NPM] fail cyclonus if unfinished (#1681)
* prevent chance of overlap in resource groups

* print npm pod state and capture previous logs

* fail cyclonus if it doesn't complete

* redirect to /dev/null

* remove incorrect use of --kubeconfig
2022-10-31 13:00:42 -05:00
Camryn Lee b231f0f2e3
fix: cluster deletion in swifte2e and submodule updates (#1683)
align submodule swifte2e with changes to main swifte2e tests and fix cluster deletion
2022-10-28 13:10:52 -05:00
aegal bc5375db3b
remove akse linux and pass ossku to cluster create (#1658) 2022-10-25 10:04:25 -07:00
Camryn Lee a5f25d9c80
trigger for all tags in main pipeline (#1676) 2022-10-24 14:40:28 -07:00
Camryn Lee 7f18513d05
exclude v* in submodule tag trigger (#1675)
exclude v* in tag trigger
2022-10-24 14:22:16 -07:00
Camryn Lee c8a238e9a3
fix: submodule tag trigger (#1674)
update submodule tag trigger
2022-10-24 14:04:42 -07:00
Mathew Merrick 80162b02e3
run Windows UT's (#1554)
* run windows UT's

* container image

* remove container

* coverage

* run windows UT's

* container image

* remove container

* coverage

* fix UTs round 1

* passing UTs for policies pkg

* use canary pool

* remove bash from windows

* fixed unit test

* added skip for windows dp translate policy tests

* lint updates and remove dataplane_windows_test.go

* updated failing tests

* fix lint issue

* fixed remaining tests

* lint update

* undo last change

* format update

* lint fix

Co-authored-by: Hunter Gregory <hunterlgregory@gmail.com>
Co-authored-by: Vamsi Kalapala <vakr@microsoft.com>
Co-authored-by: CK <ckov931@gmail.com>
Co-authored-by: Cristina Kovacs <99916704+ck319@users.noreply.github.com>
2022-10-20 12:50:28 -07:00
shchen 8970ab8594
Update the aks-e version for pipeline validation. (#1653)
* Separate the npm test and cni test, comment out npm test first. It's a
testing PR.

* Revert unnecessary change.

* update aks-e version from v1.0.1 to v1.0.2

* Update cluster definition from version 1.22.7 to 1.22.15

* Update resource group name.

* Comment out unnecessary resource group deletion since the
test-kubernetes already did this work.

* Update aks-engine version for acn validation. New version is using the
latest aks-engine release and remove duplicated and unnecessary npm
tests. Remove unnecessary resource clean up step in pipeline since it's
already included in the aks-e e2e test. Also update the kubnernetes version accordingly.
2022-10-20 09:29:31 -07:00
Vamsi Kalapala 062139e314
[NPM][Windows] remove Windows22 preview flag and k8s version (#1660)
* [NPM][Windows] remove preview flag

* remove k8s version in one file

* remove k8s version in another file

* remove k8s version in third file

Co-authored-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>
2022-10-18 13:10:46 -07:00
Camryn Lee 06f4110f37
add retry attempts for cilium connectivity test (#1657)
retry cilium connectivity x3 and fix deletion cluster naming
2022-10-18 11:20:24 -07:00
Camryn Lee 96c113a8da
pipeline testing for azure-ipam/cni-dropgz submodules (#1636)
* add new ipam/dropgz e2e test stage

* set test image

* set paths in pipeline.yaml

* set path trigger in ipam-dropgz-job template

* set path as param for ipam-dropgze2e

* testing path trigger with branch

* create submodule pipeline

* add log in /azure-ipam to test piepline trigger

* remove build for cni-dropgz image in submodule pipeline

* create separate swift + cilium ipam/dropgz test stages

* remove commented test bits

* remove commented lines from setup_test.go

* update paths/triggers and set template parameters

* change cleanup dependsOn

* test parameter call

* export parameter

* skip setting testDropgz instead of setting false

* removing ipam-dropgz templates and focus submod UT on azure-ipam

* remove parsing gatewayIP from azure-ipam unit tests

* update make target test-azure-ipam

* update make target

* only publish test results

* omit npm build

* keep npm build and simplify unit testing stage

* adjust cluster naming to avoid resource overlap in pipelines
2022-10-17 14:13:35 -07:00
Camryn Lee 6e552a078b
Add HostPort conformance test to swifte2e (#1644)
* add hostport conformance test to swifte2e

* exclude specific . paths, still want to run on changes to .pipeline
2022-10-07 23:08:17 +00:00
aegal 2995bae616
Disabling dual stack e2e tests (#1647)
* Disabling dual stack e2e tests

Disable dual stack e2e tests as its currently not supported by AKS

* remove depends on dualstack from cleanup stage
2022-10-07 13:58:01 -05:00
Evan Baker 238d12fb6c
update pipeline triggers (#1639)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-09-29 16:52:01 -07:00
Camryn Lee 40f8289e5b
adding dropgz test dockerfile for e2e testing (#1618)
* add new dockerfile for testing cni-dropgz

* add make targets for cni-dropgz-test manifest

* modify versioning in cni-dropgz-test manifest

* platform versioning for test image

* fix build of test image

* update go version for dropgz

* building vnet-ipam and vnet-telemetry

* copy azure-vnet* to grab all vnet binaries

* modify build for vnet-ipam

* fix copying of cns conflist
2022-09-28 09:35:34 -07:00
Evan Baker ce5cc41650
Increase windows container build timeout to 120m (#1617)
increase win container build job timeout to 120m

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-09-19 16:35:22 -05:00
Hunter Gregory eebbf83dbb
Revert "test: [NPM] rename resource group for win cyc latest to prevent cleanup (#1603)" (#1616)
This reverts commit 7d85ea4e0a.
2022-09-14 13:51:04 -07:00
Hunter Gregory 6e458a6ba4
test: [NPM] deploy hns-debugger in latest cyc pipeline (#1607)
deploy hns-debugger to capture traces
2022-09-12 13:22:59 -07:00
Hunter Gregory 7d85ea4e0a
test: [NPM] rename resource group for win cyc latest to prevent cleanup (#1603)
rename rg to prevent cleanup
2022-09-12 09:22:14 -07:00
Vamsi Kalapala 7d89a83041
fix: [NPM] cyclonus latest pipeline cleanup issue (#1600)
* fix: [NPM] cyclonus latest pipeline cleanup issue

* fix: [NPM] cyclonus latest pipeline cleanup issue

* fix: [NPM] cyclonus latest pipeline cleanup issue
2022-09-09 16:19:35 -07:00
Vamsi Kalapala 08ce35190d
Pipelines: Failfast on an error (#1592)
* fix: pipelines exit early on error

* fix: pipelines exit early on error

* adding fail check
2022-09-09 15:08:27 -07:00
Vamsi Kalapala ffc1c87da5
pipeline: New Cyclonus NPM windows only pipeline (#1595)
* pipeline: New Cyclonus NPM windows only pipeline

* pipeline: New Cyclonus NPM windows only pipeline
2022-09-09 11:40:34 -07:00
Camryn Lee 1b5420ae62
Add cilium connectivity tests (#1565)
* cilium connectivity tests

* skip 2 failing tests

* skip 2 failing tests

* skip deploy cilium-cni, update cilium helm vals

* update setup_test

Co-authored-by: Evan Baker <rbtr@users.noreply.github.com>
2022-09-08 17:54:52 -07:00
Vamsi Kalapala 5750e0dc3f
fix: Remove powershell sub command while building windows images (#1583)
* fix: Remove retry from Windows pipelines

* Adding in make command for windows NPM

* fixing an issue with retry

* adding a retry on task

* fix: remove sub powershell command for windows builds
2022-09-07 16:47:17 -07:00
Vamsi Kalapala 1c43a5cf37
pipelines: Adding a new stage for NPM continous integration (#1580)
* pipelines: Adding a new stage for NPM continous integration

* pipelines: Adding a new stage for NPM continous integration

* pipelines: Adding a new stage for NPM continous integration

* removing download phase

* removing download phase

* remove v1 default
2022-09-07 14:19:19 -07:00
Vamsi Kalapala 1d7f484e11
fix: Remove retry from Windows pipelines (#1576)
* fix: Remove retry from Windows pipelines

* Adding in make command for windows NPM

* fixing an issue with retry

* adding a retry on task
2022-09-07 14:18:29 -07:00
Evan Baker 088e213626
build arm64 images on an arm64 pool (#1563)
build on arm64 pool

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-09-06 19:56:36 +00:00
Mathew Merrick 312bf12bad
Update npm-conformance-tests.yaml (#1574)
* Update npm-conformance-tests.yaml

* push tag
2022-09-02 12:09:54 -07:00
Hunter Gregory e11b452096
test: [NPM] wait on containerizing windows for ws22 conformance (#1570)
need to wait on containerizing windows for ws22-default
2022-09-01 14:29:52 -07:00
Evan Baker 8888338c62
Pipeline support for Go submodules versioned independently of root repo (#1533)
* use submodule specific tags

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* support separate go submodule versions

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* move version and tag responsibilities to the makefile

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* update integration tests to use component tags

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-09-01 18:35:01 +00:00
Evan Baker 2a46b2be6a
drop go1.18 (#1557)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-08-30 22:27:26 +00:00
Camryn Lee 069fba2494
Add conformance tests to swifte2e (#1556)
* conformance tests for swifte2e

* fix spacing
2022-08-30 17:34:08 +00:00
Camryn Lee b3b3897360
Add services conformance tests to ciliume2e (#1548)
* set up conformance tests

* set path

* testing path

* test

* test

* test

* test

* list installs

* test

* check for cns pods

* skip ds deletion

* remove CNS daemonset deletion

Co-authored-by: Camryn Lee <camrynlee@microsoft.com>
2022-08-29 15:41:54 -07:00
Camryn Lee e041a0c1cd
Update PR pipeline with ciliume2e (#1515)
* test cilium cluster installation

* change deploy arg

* test helm deploy

* fix helm args

* test

* test

* test helm install

* split swift/azilium tests

* test

* separate pipeline step for cilium cluster

* fix file name

* test

* test

* test

* test

* change img pull policy

* test

* test

* test iptable SNAT rules

* test configmap change

* fix newline spacing

* toggle iptable in cns-config

* fix cni config format

* test

* test

* test

* test

* Test configmap

* test

* mount xtables lock + set securityContext

* test

* test deploy args

* clean up

* clean up

* update cilium helm vals

* update step template cilium version

* test conflist copy

* Test

Co-authored-by: Camryn Lee <camrynlee@microsoft.com>
2022-08-23 17:04:22 -07:00
Vamsi Kalapala a07b422828
chore: Update k8s verion for NPM conformance tests (#1534) 2022-08-19 10:23:28 -07:00
Mathew Merrick ef95e7d9f4
Add Cyclonus Windows job (#1363)
* add cyclonus windows job

* control plane jobs

* add cyclonus to conformance

* run cyclonus from pipeline vm

* containerize

* cluster name

* rg name

* shorter rg

* k8s version

* update wait timeout

* logging

* get kubeconfigs

* date

* kubeconfig

* shorter name

* job timeout

* bigger vm

* increase vm size

* kubernetes version

* feature preview register

* increase node size

* exit code

* failonstderr

* move windows specifics closer

* omit failstderr

* wait for npm pods to restart

* update conformance scope

* retry

* seperate conformance for platforms

* revert branch

* hunter's branch
2022-08-08 10:43:44 -07:00
Camryn Lee 3a854f5766
Update swift e2e to use CNS ds with CNI installer (#1501)
* use initContainers

* add suggested changes

* add vni-conflist to volumes

* test w diff region

* modify deploy args

* fix deploy args

Co-authored-by: Camryn Lee <camrynlee@microsoft.com>
2022-08-04 16:53:51 +00:00
Camryn Lee b58dc70702
Update Swift pipeline w byo cluster (#1475)
* byo cluster pipeline update

* adding sub var

* use build validations sub

* test

Signed-off-by: GitHub <noreply@github.com>

* use native azcli

* test /usr/bin/az

* login and set sub

* testing

* try upgrade cli

* try upgrade azcli 2

* testing

* testing

* test svc conn

* test svc conn

* test svc conn

* test svc conn

* test svc conn

* test svc conn

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* fix rg-down

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* update ds

* testing

* build imgs

* test

* uncomment pipeline

* remove debug

* pipeline update

* review fixes

* update svc conn

* testing

Co-authored-by: Camryn Lee <camrynlee@microsoft.com>
Co-authored-by: Evan Baker <rbtr@users.noreply.github.com>
2022-07-27 14:12:58 -07:00
Evan Baker 76e5f20dbf
bypass broken win2022 e2e (#1473)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-07-20 18:12:55 -05:00
Evan Baker c391f67ea2
Add dropgz module for CNI installer (#1335)
* dropgz: self extracting gz installer and cni dropper dockerfile

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* update integration test for new container name

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* add compound closer and address other review feedback

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* address review comments

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-07-15 14:56:02 -07:00
shreyashastantram e846573fc6
Adding the delete rg task (#1403) 2022-05-26 22:12:13 +05:30
Jaeryn 101da04913
bump AKS-E to v1.0.5 (#1402)
Co-authored-by: Jaeryn <tsun.chu@microsoft.com>
2022-05-26 02:20:38 +00:00
Mathew Merrick dfddb2092d
save image tarballs as pipeline artifacts (#1394)
* skopeo save
2022-05-23 11:44:06 -07:00
Jaeryn bc4a72fab1
Use default build pool for AKS-Swift (#1387)
Co-authored-by: Jaeryn <tsun.chu@microsoft.com>
2022-05-18 13:26:10 -05:00
Jaeryn dbb4f68393
build: Add Windows CNS & NPM as Part of Multi-Arch Manifest (#1345)
* add windows cns manifest to multi arch image

* try to use generic windows template w/ containerize stage in pipeline

* try and use buildah to pull images

* update manifest build and push for buildah

* create manifest by referencing images instead of pulling to avoid OS mismatch error

* remove unused windows-image.yaml

* remove REGISTRY var and use IMAGE_REGISTRY from makefile

Co-authored-by: Jaeryn <tsun.chu@microsoft.com>
Co-authored-by: Evan Baker <rbtr@users.noreply.github.com>
2022-05-05 15:32:53 -07:00
Evan Baker 6394cf6707
build multiplat manifests with buildah (#1356)
* build multiplat manifests with buildah

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* copy container in to docker-daemon cache and re-enable trivvy

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* set -e

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-05-04 18:18:26 -05:00
Evan Baker 7122dc246d
pull images from mcr (#1347)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-04-26 17:42:45 -05:00
Jaeryn bfe5d082d6
test: Add WS2022 Test to Pipeline (#1299)
* Adding ws2022 tests

* add eof newline

* bumping orchestrator releas/version

* use containerd v1.6.2

* trying different orchestrator versions

* update pipeline template to pull aks-e from private release

* updating image reference

* Exposing ws2022 e2e gallery/image subscription and version as pipeline variables

* Enabling host process containers in api server config

Co-authored-by: Jaeryn <tsun.chu@microsoft.com>
2022-04-21 17:37:36 -07:00
Evan Baker 77dfdcf2af
update to go1.18 (#1281)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-04-04 16:49:49 -05:00
Vamsi Kalapala db645e5f6b
fix: [tests] temporarily disable Windows Dualstack e2e (#1315) 2022-04-01 16:33:41 -07:00
Vamsi Kalapala d762bc0bf3
test: adding back Swift e2e pipeline (#1279) 2022-03-14 23:31:31 +00:00
Mathew Merrick d40b2930a6
NPM build with CGO enabled and temporarily disable swift e2e (#1275)
* pull stack trace on crash

* enable cgo

* remove swift pipeline temporarily

* remove cleanup dependency
2022-03-14 09:08:17 -07:00
Hunter Gregory c44187c175
test: [NPM] Stress Testing & Fix Conformance Logs (#1264)
* test logs

* wip

* add IS_STRESS_TEST to matrix

* finish

* Copy instead of move kubeconfig

* fix folder name

* Fix folder name again

* sleep and fix published folder

* should be done

* rearrange and exit properly

* test exit code

* finalized

* make num parallel jobs a global setting
2022-03-08 10:19:23 -08:00
Evan Baker 8f9d6b32d6
use fully-qualified image names in all Dockerfiles (#1248)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-02-24 12:08:13 -06:00
Evan Baker 467eacd4ea
update cyclonus workflow (#1246)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-02-16 14:30:17 -06:00
Evan Baker 09c06b01e1
Parameterize Makefile, parallelize platform builds, support buildah (#1102)
* templatize the container make targets

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* add container push to npm conformance task

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* update pipelines

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* default OS and ARCH to GOOS and GOARCH

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-02-15 19:00:04 -06:00
Hunter Gregory 667743d79f
fix: [NPM] fix incorrect ipset create, fix 1-off prometheus logic, and add cache checking for UTs (#1202)
* wip

* dont touch v1 metrics code and fix lints

* add comment and comment code to resolve lint

* optimize looping and dirty cache updates

* address comments and change param type of modifyCacheForKernelMemberUpdate to reduce map lookups

* add exec time metrics

* UTs

* fix lints

* initialize metrics in policymanager tests

* fix bug in publishing npm logs
2022-02-01 14:47:20 -08:00
tamilmani1989 b988bef9fb
updated dualstack rgname (#1204) 2022-01-23 19:23:54 -08:00
bohuini 34db93a4af
Added SBOM Generator tool to pipeline (#1196) 2022-01-13 16:33:04 -08:00
tamilmani1989 ea3bc46c69
windows dualstack pipeline (#1170)
* windows dualstack pipeline

* temporarily commented build images and tests

* fixed if else

* adding back change removed wrongly due to conflict

* updated artifact name

* updated rg name based on OS

* updated cluster name and artifacts
2021-12-30 11:31:10 -08:00
Vamsi Kalapala cfc1eecb0a
fix: [NPM] fix conformance pipeline NPM Logs name (#1171)
* fix: [NPM] fix conformance pipeline NPM Logs name

* dummy testing logs folder name

* fixing folder name
2021-12-13 12:54:47 -08:00
tamilmani1989 697984a9c9
ci: [CNI dualstack] Added e2e test pipeline for linux dualstack scenario (#1156)
* e2e pipeline for linux dualstack

* separated into jobs

* fixed template

* indent fix
updated stage name

* disabled build image and run test

* added dependency for cleanup

* added cmds to debug

* updated clone step

* moved to task for deploying aks-engine cluster

* updated container image

* added debug log

* fixed cmd

* updated env rg

* using forked aks-engine version

* reverting the changes

* dnprefix to be auto generated

* updated dns prefix

* get one region

* reversed if-else

* updated node count
2021-12-09 10:00:50 -08:00
Hunter Gregory ed4aa371c3
test: [NPM] conformance tests for multiple profiles (#1138)
* mtest: run conformance for npm profiles in parallel

* update dependsOn field

* FIXME updating trigger for pipeline run for now

* Revert "FIXME updating trigger for pipeline run for now"

This reverts commit dce5ac2fbd.

* fix yaml compile error

* shorten cluster name because it was too long

* remove test for v1-place-azure-chain-first profile

* remove always() condition for cleanup and publish kubeconfig artifact

* rename kubeconfig artifact name

* try putting kubeconfig in the published npmlogs folder
2021-12-08 11:33:55 -08:00
Mathew Merrick 537b11cc34
feat: add image and manifest for windows npm (#1098)
* add image and manifest for windows npm
2021-12-02 09:55:36 -08:00
Mathew Merrick 4658dfd395
retry ci (#1134) 2021-11-30 13:57:54 -06:00
Mathew Merrick fa8f665ab5
ci: add windows build pool and NPM windows dockerfile (#1073)
* build pool windows
2021-11-05 10:30:09 -07:00
Mathew Merrick 7c2aa30b7a
ci: update e2e apimodel to 2004 (#1068)
* chore: update apimodel to 2004
2021-10-22 13:20:43 -07:00
aegal e1c9176c36
adding honeycomb-dev branch to p.r triggers (#1051) 2021-10-12 08:25:50 -07:00
Evan Baker 1b86e8db99
reenable the swift e2e pipeline (#1042)
* reenable the swift e2e pipeline

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* go mod tidy and vendor

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* bump to go1.17

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* vendor

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* try running on host

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* drop -test from pipeline versions

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* update retrier

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2021-10-05 18:49:27 -05:00
Paul Johnston 3f97a3040f
Arm64 docker (#1030)
* chore: making docker images arch agnostic through docker buildx
2021-09-28 14:17:25 -07:00
Paul Johnston 36d975b08f
Adding a build stage for arm64 cni (#990)
* Making multi-platform make target and integrating it into PR pipeline
2021-09-08 14:46:32 -07:00
neaggarwMS 03119d28ed Update pipeline.yaml for Azure Pipelines 2021-08-31 12:35:56 -07:00
neaggarwMS 7c195d2bdf Update pipeline.yaml for Azure Pipelines
Removing AKS on Swift until we unblock underlay
2021-08-31 12:28:56 -07:00
Mathew Merrick 9b24dbd95a
test: [NPM] Use fakeexec for ipsm and iptm tests (#868)
* iptmgr

* more iptm testing

* grep call

* progress

* progress

* ipsm

* ioshim

* update tests

* package restructure

* fix broken test and delint

* reduce scope of ioshim

* reduce scope of ioshim

* ioshim scope

* require no error, retrigger ci

* ut return multiple results

* fix tests from master changes

* unexport ioshim

* update ut

* fix tests

* vendor

* test fix

* go version

* go version

* pipeline fixes

* fix tests
2021-07-14 12:53:45 -07:00
Evan Baker ee7538cf5f
chore: update to go1.16 (#887)
* chore: update to go1.16 for embed
* chore: update github.com/docker/libnetwork dependency to fix logrus package casing issue
* feat: move build-time binary dependencies to build/tools and compile locally

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2021-06-03 11:18:21 -05:00
Mathew Merrick 8c661d2d1d
[NPM] Update client-go vulnerabilities and add Trivy to CI (#872) 2021-05-25 13:37:30 -07:00
Mathew Merrick a736954e7a
chore: Remove CodeCov from CI (#853)
* Remove codecov and use service connections
2021-04-22 13:09:31 -07:00
Mathew Merrick d929d1acb0
chore: Specify CI build pool name (#841)
* Specify pool name
2021-04-13 11:00:49 -07:00
Paul Johnston 0cf6ed8c3d
Cleanup artifacts dir (#847)
* Cleanup artifacts dir
2021-04-02 15:52:34 -07:00
Paul Johnston 9365272a02
Aks swift test update (#838)
* AKS-Swift-test update to use underlay in runners sub
2021-04-02 13:24:01 -07:00
Mathew Merrick fe66f5b03e
[build] Makefile update to generate image tarballs in artifacts (#804)
Consolidate CNS docker files into 1 only, and output docker images to neat images directory as part of build for release purposes
2021-03-25 14:08:02 -07:00
Mathew Merrick a0c36fe50b
[fix] IPset fail if set doesn't exist when attempting to add to list (#828)
* ipset fail if set doesn't exist when attempting to add to list

* bail out on add to set when ip is empty

* check set type when adding to list

* revert checking nil value

* fix test build issues

* additional ip check

* ip check with parseip

* prometheus count

* delete from set checks

* delete from set checks

* log on skipping pod

* logging pipeline

* npm logs ci
2021-03-24 10:50:52 -07:00
Vamsi Kalapala 455f5cb9f0
[NPM] Decoupling resource cache maps from NSmap (#820)
* first pass at decoupling resource maps

* First pass on decoupling resource maps

* Adding telemetry capabilities to resource CRUD events

* Initializing new maps in nprMgr for tests

* Initializing new maps in nprMgr for tests

* Adding artifact for Npm logs

* Addressing comments

* Addressing comments
2021-03-15 16:08:42 -07:00
Mathew Merrick ea07e4f4a7
[ci] Remove Windows 1809 E2E definition (#818) 2021-03-11 15:28:42 -08:00
Vamsi Kalapala ba8394046d
[NPM] Caching ability for Pods and NS (#814)
* First pass at implementing pod cache

* handling namedports in case of pod update

* Correcting print error

* Cleaning up pod cache update event. moving pod cache to nsMAP

* Correcting namespace prefix

* Adding in checks on protlists and Podips

* changing some variable names

* changing some variable names

* Adding resource versions checks for Pod, NS and netpols

* fixing some tests

* changing ResourceVersion to uint64 and cleaning up oldpodobj references

* rearranging hostneptol and correcting a UT failure

* Fixing the hostnet pod UT

* Addressing comments

* fixing UT

* Fixing UTs

* correcting pod delete failure bug

* Fixing clean up bug

* Handling hostnet pods in Delete pod

* Addressing comments and ficing a panic error
2021-03-08 10:19:22 -08:00
Mathew Merrick 4a17414888
Update npm-conformance-tests.yaml (#800) 2021-02-24 12:47:51 -08:00
Mathew Merrick d78002d3c0
[build] Update pipeline and enable debug symbols in bins (#793)
* add symbols, add gcflags, update timeouts, only show azure core errors
2021-02-23 12:58:49 -08:00
Mathew Merrick 073ec24fca
[ci] Add NPM Conformance Test Pipeline (#792)
* [ci] Add NPM conformance pipeline
2021-02-19 10:52:21 -08:00
Mathew Merrick 73ae4e0325
chore: update tools directory and deployments (#779) 2021-02-09 17:56:37 -08:00
Mathew Merrick 39c9ad3a72
test: Add Swift Testing Pipeline (#712)
* Add new Swift test scenarios
2021-01-20 11:00:32 -08:00
Mathew Merrick c499075742
chore: Update pipeline yaml, replace hardcoded registries to env's (#744)
* fix: replace hardcoded image env's to env's
2020-12-02 11:26:08 -08:00
Vamsi Kalapala 52b030f41d
Merge branch 'master' into vakr/cns_lb_mnat 2020-11-11 16:43:58 -08:00
Matthew Long eab521d616
update cns tag in yaml (#719)
* update cns tag in yaml

* pipeline cleanup

Co-authored-by: Matthew Long <Matthew.Long@microsoft.com>
Co-authored-by: Matthew Long <matlong@microsoft.com>
2020-11-04 12:27:44 -08:00
Mathew Merrick a9c7d6e684
fix: Add missing CNI invoker delete calls (#696)
* fix missing invoker delete calls

* pipeline debug

* fix nil on delete

* another nil check
2020-10-29 18:03:44 -07:00
Mathew Merrick fd16fcc6a7
Bring Goldpinger tests to ACN (#710)
* bring in goldpinger tests

Co-authored-by: Ramiro Gamarra <ragamarr@microsoft.com>

* add integration build tags

* yaml formatting

* remove unnecessary logging line

Co-authored-by: Ramiro Gamarra <ragamarr@microsoft.com>
2020-10-28 23:39:27 -07:00
vakr e9e0686608 Adding in export function to checkk all test env variables 2020-09-30 15:38:59 -07:00
Mathew Merrick 41232c134d
CNI using CNS IPAM (#597)
* Configure CNI to use CNS IPAM
2020-09-29 14:43:19 -07:00
Paul Johnston 7aad2e4bd2
test: set DEBUG_CRASHING_PODS=true to stop skipping restart test (#679) 2020-09-22 17:35:55 -07:00
Mathew Merrick a510782478
Move E2E's to separate stage (#677)
* remove job from e2e

* break to stages
2020-09-22 16:16:11 -07:00
Mathew Merrick b41ae2a04a
Prepare artifacts stage (#628) 2020-07-24 14:01:06 -07:00
Mathew Merrick dc37410502
Pipeline update (#627)
* pipeline update

* dockerfile update

* ipset update
2020-07-23 23:21:49 -07:00
Jaeryn 942ce4adaa
Updating pipeline image with necessary libs and bumping up base image version to 20.04LTS (#586)
Co-authored-by: Jaeryn <tsun.chu@microsoft.com>
2020-06-23 16:14:27 -07:00
Mathew Merrick 9f3478f828
Add codecov.yml (#559)
* add codecov.yml

* add race flag to tests

* make covermode atomic
2020-05-09 08:19:37 -07:00
tamilmani1989 aed0d716b9
Azure CNI Windows dualstack support (#557)
* windows ipv6 changes

* addressed compilation issues

* return fix

* type error

* updated pipeline.yaml

* removed -mod=vendor

* updated pipeline yaml

* fixed pipeline.yaml

* fixed pipeline.yaml

* updated function name as per comment
2020-05-07 11:40:46 -07:00
Mathew Merrick 00da4e2393
Change pipeline storage account (#541)
* update pipeline

* update pipeline

* k8s version 1.17 in test

* update pipeline timeout
2020-04-07 17:19:05 -07:00
Jaeryn 38dc38e898
Move NPM from dep to go mod (#539)
* Moving NPM to use gomod

* Vendoring via go mod

* add more npm tests

* remove go dep specific commands

* adding pipeline changes
2020-04-06 16:18:17 -07:00
Mathew Merrick 79d8758228
ipv6 don't reserve gateway address (#537) 2020-04-02 20:24:51 -07:00
Mathew Merrick d2ba9bb2f3
IPv6 Node IPAM (#532)
* switch to go mod

* pull node spec from apiserver

* carve v6 addresses

* address pool

* update go mod vendor

* build image

* build image

* build image

* separate go mod for npm

* add manager ipv6 ipam test

* added comments and addressed feedback

* address comments

* address comments

* address comments

* check if loaded

* address comments

* update pipeline

* update pipeline

* update test message

Co-authored-by: Ubuntu <azureuser@k8s-agentpool1-23761303-0.2w0jm2xwiahebmp33klngrlq1d.xx.internal.cloudapp.net>
2020-04-02 11:01:05 -07:00
Mathew Merrick 358736681c
Upgrade packages at image build time (#504)
* upgrade packages at image build time

* update pipeline to use MCR

* use mcr

* use mcr

* use mcr

* use mcr

* use mcr

* use mcr

* env

* env

* update pipeline

* update pipeline

* update pipeline

* update pipeline

* update pipeline

* update pipeline

* update pipeline

* update pipeline

* update pipeline

* update pipeline

* update pipelines

* update pipelines

* update pipelines
2020-02-21 13:38:14 -08:00
Mathew Merrick c5163cf63a
Test NPM in E2E (#478)
* update pipeline to test dirty NPM
2020-02-14 11:09:54 -08:00
Mathew Merrick a59a9aa92b Use prebuilt artifacts in E2E (#474)
* update e2e to reuse pipeline artifacts

* install ginkgo

* update e2e config for apiserver

* add clean up step

* aks-engine version

* aks-engine version

* aks-engine version

* aks-engine version

* aks-engine version

* aks-engine version

* aks-engine version

* aks-engine version
2020-01-14 13:35:38 -08:00
Mathew Merrick 2c0ae6d723 Allow egress all and ingress all without target set (#435)
* allow all egress and ingress without drop

* remove comment breaks

* update test

* remove sleep and socket cleanup

* address feedback

* all namespaces

* fix tests

* update npm test

* aks-engine

* aks-engine

* pipeline

* pipeline

* pipeline

* pipeline

* remove comment breaks

* remove comment breaks

* remove comment breaks

* remove comment breaks

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline
2019-11-14 11:11:11 -08:00
Mathew Merrick d0a9343e75
Persist cluster configs in AZP (#426)
* update cluster configs for more version testing
2019-10-29 14:12:44 -07:00
Mathew Merrick 0b8d516d91
Fix AZP artifact names (#415)
* update pipeline.yaml
2019-09-30 17:54:24 -07:00
Mathew Merrick 923b7d5cff
E2E CI (#403)
* E2E Azure Pipelines config
2019-09-30 10:16:12 -07:00
Mathew Merrick c44e775344
NPM test fixes + Azure Pipelines (#402)
Initial Azure Pipelines config, run pipeline tests in container, CNM and NPM fixes
2019-09-20 16:15:08 -07:00