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

2475 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] ba7af1c034
deps: bump google.golang.org/grpc from 1.66.1 to 1.66.2 (#3010)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.66.1 to 1.66.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.66.1...v1.66.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-12 15:44:08 +00:00
Saksham Mittal ce617a7589
Revert "Add join VNET call for every AZR NC unpublish call" (#3008)
Revert "Add join VNET call for every AZR NC unpublish call (#2983)"

This reverts commit b7ce09fd49.
2024-09-12 04:19:07 +00:00
Hunter Gregory 60ddd3531a
fix: [Linux] [NPM] handle #2977 for netpols without cidrs (#2990)
* fix: [Linux] [NPM] handle #2977 for netpols without cidrs

Signed-off-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>

* fix: lock and no need to track policy key

Signed-off-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>

* style: remove dead code

Signed-off-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>

---------

Signed-off-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>
2024-09-11 19:40:16 +00:00
Alexander 47b4329b06
fix: add dhcp discover packet to linux swiftv2 to ensure mappings exist for dns (#2989)
* add dhcp client

* address linter issues

* issue dhcp discover request without libraries

* remove library references

* add build tag and remove rand dependency

* address linter issues

* update logging

* fix logging

* move unix sockets to interface to address feedback

* address linter issues

* prevent leaking sockets on error

* remove reuse address option

* add comments

* make dhcp client
2024-09-10 16:46:05 +00:00
dependabot[bot] 0c48fa06da
deps: bump k8s.io/kubelet from 0.30.3 to 0.30.4 (#3001)
Bumps [k8s.io/kubelet](https://github.com/kubernetes/kubelet) from 0.30.3 to 0.30.4.
- [Commits](https://github.com/kubernetes/kubelet/compare/v0.30.3...v0.30.4)

---
updated-dependencies:
- dependency-name: k8s.io/kubelet
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-10 15:31:36 +00:00
dependabot[bot] c5f46ebfb9
deps: bump google.golang.org/grpc from 1.66.0 to 1.66.1 (#3002)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.66.0 to 1.66.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.66.0...v1.66.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-10 15:27:06 +00:00
dependabot[bot] 9d13e2dfe0
deps: bump github.com/prometheus/common from 0.57.0 to 0.59.1 (#2996)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.57.0 to 0.59.1.
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/RELEASE.md)
- [Commits](https://github.com/prometheus/common/compare/v0.57.0...v0.59.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-09 18:37:42 +00:00
dependabot[bot] 30614ae2fd
deps: bump github.com/prometheus/client_golang from 1.20.2 to 1.20.3 (#2994)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.20.2 to 1.20.3.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.20.3/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.20.2...v1.20.3)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-09 14:42:03 +00:00
Vipul Singh bc46af360c
ci: adding increments of 200 to scale pipeline (#2988) 2024-09-09 13:34:17 +00:00
dependabot[bot] d3b38292c9
deps: bump golang.org/x/crypto from 0.26.0 to 0.27.0 (#2995)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.26.0 to 0.27.0.
- [Commits](https://github.com/golang/crypto/compare/v0.26.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-09 13:11:14 +00:00
Hunter Gregory 464bec075c
fix: [NPM] [Linux] handle more than 15 leaked ipsets (#2998)
Signed-off-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>
2024-09-09 13:11:07 +00:00
Evan Baker ff46b57144
fix: add legacy IPAM metrics back to IPAMv2 (#2970)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2024-09-04 16:01:25 +00:00
Saksham Mittal b7ce09fd49
Add join VNET call for every AZR NC unpublish call (#2983)
* add join vnet call for every AZR nc unpublish call

* add missing return

* linter fix

* add comment
2024-09-03 23:16:49 +00:00
Paul Yu fc933e2453
Add UTs for CNI Windows Policy (#2965)
* enhance cni policy UTs

* add UTs for policy windows

* add a new UT

* add more windows policy UTs

* add new UTs

* add new UTs

* add new UTs
2024-08-30 03:29:56 +00:00
Hunter Gregory e64d9d854d
fix: [NPM] [Linux] race when deleting/readding NetPol (#2978)
fix: [NPM] [Linux] race when deleting/readding CIDR NetPol

Signed-off-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>
2024-08-30 00:40:48 +00:00
Paul Yu 96711bc8ed
fix: Ignore accelnetEnable flag to disable swiftv2 Linux&&Windows for AccelentNIC (#2976)
* ignore accelnetEnable flag to fix swiftv2 Linux

* fix the comment

* remove accelnetEnable flag
2024-08-30 00:09:54 +00:00
Alexander a50833687e
ci: remove logger field from portforwarder to avoid race with goroutine (#2959)
* do not pass testing logger into goroutine to avoid race

* fix port forwarder
2024-08-29 16:07:24 +00:00
dependabot[bot] 3396bcd113
deps: bump github.com/prometheus/common from 0.56.0 to 0.57.0 (#2971)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.56.0 to 0.57.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/RELEASE.md)
- [Commits](https://github.com/prometheus/common/compare/v0.56.0...v0.57.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-29 15:13:05 +00:00
dependabot[bot] 7eeed03255
deps: bump google.golang.org/grpc from 1.65.0 to 1.66.0 (#2972)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.65.0 to 1.66.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.65.0...v1.66.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-29 15:02:04 +00:00
Matthew Long a01f0a0192
feat: add device plugin support to CNS (#2886)
* feat: add device plugin support to CNS

* Add UT coverage and linter fixes

* fix windows-latest lint issues

* Update cns/deviceplugin/pluginmanager.go

Co-authored-by: Timothy J. Raymond <timraymond@users.noreply.github.com>
Signed-off-by: aggarwal0009 <127549148+aggarwal0009@users.noreply.github.com>

* remove test run output file

* linter fixes

* resolve readability related comments

* move nolint annotations inline

* remove unnecessary nolint

* update UT

* deleted gitignore for test file

* fix goroutine eak

* pr feedback cleanup

* move devicePrefix to a constant

* pr refactoring

* refactored to make PluginManager generic

* Update trackDevice to return nil

* Add documentation

* fix shutdownCh initialization in server.go

* Fix UTs

* fix merge conflict errors

---------

Signed-off-by: aggarwal0009 <127549148+aggarwal0009@users.noreply.github.com>
Co-authored-by: aggarwal0009 <127549148+aggarwal0009@users.noreply.github.com>
Co-authored-by: Timothy J. Raymond <timraymond@users.noreply.github.com>
2024-08-29 14:35:49 +00:00
Hunter Gregory 4971fb646d
fix: [NPM] [Linux] panic if applyIPSets continues to fail (#2964)
Signed-off-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>
2024-08-28 16:25:38 +00:00
dependabot[bot] 455f80254a
deps: bump github.com/prometheus/common from 0.55.0 to 0.56.0 (#2966)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.55.0 to 0.56.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/RELEASE.md)
- [Commits](https://github.com/prometheus/common/compare/v0.55.0...v0.56.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-28 14:44:31 +00:00
Paul Yu 6f3fcdb432
Add UTs to test findMasterInterface (#2941)
* add UTs to test findMasterInterface

* fix comments

* fix an UT

* fix UTs

* remove a fmt print

* fix linter issue

* add new IT

* fix linter issue

* fix comment

* fix comment

* add parser for multiple interfaces

* remove print

* add net.IPNet to net.addr array

* fix comment
2024-08-28 02:29:24 +00:00
dependabot[bot] 6cfc50fe22
deps: bump mvdan.cc/gofumpt from 0.6.0 to 0.7.0 in /build/tools (#2930)
Bumps [mvdan.cc/gofumpt](https://github.com/mvdan/gofumpt) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/mvdan/gofumpt/releases)
- [Changelog](https://github.com/mvdan/gofumpt/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mvdan/gofumpt/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: mvdan.cc/gofumpt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-28 01:10:06 +00:00
dependabot[bot] 00f42f14f8
deps: bump github.com/prometheus/client_golang from 1.20.1 to 1.20.2 (#2955)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.20.1 to 1.20.2.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.20.1...v1.20.2)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-27 20:37:16 +00:00
dependabot[bot] f6400e53b9
deps: bump github.com/coreos/go-iptables from 0.7.0 to 0.8.0 (#2960)
Bumps [github.com/coreos/go-iptables](https://github.com/coreos/go-iptables) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/coreos/go-iptables/releases)
- [Commits](https://github.com/coreos/go-iptables/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: github.com/coreos/go-iptables
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-27 20:32:27 +00:00
aggarwal0009 8359dbb7c9
Update dockerfiles to use go v1.22 (#2931)
* update dockerfiles to use go v1.22

* more changes

* mod file update

* revert bpf-prog

* fix for e2e

* remove/update comment
2024-08-27 20:15:23 +00:00
Jackie Luc 0a47e178be
[CNS] Add unit tests to Standalone SwiftV2 scenario (#2932)
* chore: update comments to include field keys

* test: refactor to pass in orchestrator type for CNS mock

* chore: add swiftv2 standalone context with NMAgent

* test: add swiftv2 standalone happy path tests

* test: add comments

* test: add validation tests

* feat!: remove middleware error response overriding to unexpected error

* test: fix missing argument to refactored getTestService
2024-08-27 19:31:36 +00:00
dependabot[bot] e10c61de2f
deps: bump github.com/vishvananda/netlink from 1.2.1 to 1.3.0 (#2956)
Bumps [github.com/vishvananda/netlink](https://github.com/vishvananda/netlink) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/vishvananda/netlink/releases)
- [Commits](https://github.com/vishvananda/netlink/compare/v1.2.1...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/vishvananda/netlink
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-27 19:09:55 +00:00
Alexander 6b05df11f4
fix: don't print stack trace of error for certain logs to prevent spam (#2904)
* reduce stack trace spam by wrapping errors in custom type

* differentiate logs

* move custom error to log package

* address feedback

* add uts

* address linter issues
2024-08-24 13:20:40 +00:00
Alexander 3e161f00bf
chore: remove cnm code (#2906)
* remove cnm code

* remove cnm refs in docs, comments, cns args, and makefile

* remove cns ipamclient as it uses cnm

* remove cns ipam client consts
2024-08-24 02:45:06 +00:00
dependabot[bot] ad7a1931e7
deps: bump github.com/vishvananda/netlink from 1.2.1-beta.2 to 1.2.1 (#2953)
Bumps [github.com/vishvananda/netlink](https://github.com/vishvananda/netlink) from 1.2.1-beta.2 to 1.2.1.
- [Release notes](https://github.com/vishvananda/netlink/releases)
- [Commits](https://github.com/vishvananda/netlink/compare/v1.2.1-beta.2...v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/vishvananda/netlink
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-23 18:34:08 +00:00
Alexander 98466f4ef2
feat: add custom codeql queries (#2919)
* add custom codeql queries

* modify severity level

* modify precision and severity

* try changing error case

* clean up queries
2024-08-23 16:48:24 +00:00
Paul Yu 4c66f48fdd
Add UTs to configure secondary interfaces add Result for windows swiftv2 (#2923)
* add UTs for adding interface NICs to cni Result

* add UTs to add interface nics to cniResult

* add an unhappy path ut

* fix linter issues

* fix linter issues

* add a new UT

* fix comments

* remove configurhcnEndpoint UT

* fix linter issue

* fix comments

* fix UT

---------

Signed-off-by: Paul Yu <129891899+paulyufan2@users.noreply.github.com>
2024-08-22 23:19:18 +00:00
John Payne cf8fb621cc
fix: Add --kubernetes-version to linux-cniv1-up cluster creation (#2952)
fix: Add--kubernetes-version to linux-cniv1-up cluster creation
2024-08-22 22:43:37 +00:00
Camryn Lee 55936d7236
fix: k8s load test scenario for dualstack vs datapath (#2951) 2024-08-22 21:07:45 +00:00
dependabot[bot] 5d696fe4bf
deps: bump github.com/prometheus/client_golang from 1.20.0 to 1.20.1 (#2943)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.20.0 to 1.20.1.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.20.1/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.20.0...v1.20.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-22 20:31:47 +00:00
Paul Yu ec1a1eee52
fix: dualnic options to avoid overwritting vlanMaps (#2928)
* fix: dualnic options

* fix comments

* add log

* add ut for ShallowCopyIpamAddConfigOptions

* add log to setNetworkOptions in Linux

* add interfaceInfo print back

* fix zap log

* comment fix

* fix UT variables

* print options in endpoint creation

* fix UTs

* add one more UT

* minor: change the newSNATIPKeyValue name

* enhance log line
2024-08-22 18:47:59 +00:00
Alexander de7bb5e34e
ci: remove ovs create bridge test (#2942) 2024-08-22 02:27:09 +00:00
Alexander 1182036a06
ci: run some cni windows uts in the pipeline (#2925)
* make windows uts pass

* separate multitenancy uts for windows into platform specific file

* move ut testing to separate template

* address linter issue

* run windows platform tests

* revert removing test create bridge

* remove parameter from ut template
2024-08-21 18:19:10 +00:00
dependabot[bot] e31c8e7fea
deps: bump github.com/Microsoft/hcsshim from 0.12.5 to 0.12.6 (#2934)
Bumps [github.com/Microsoft/hcsshim](https://github.com/Microsoft/hcsshim) from 0.12.5 to 0.12.6.
- [Release notes](https://github.com/Microsoft/hcsshim/releases)
- [Commits](https://github.com/Microsoft/hcsshim/compare/v0.12.5...v0.12.6)

---
updated-dependencies:
- dependency-name: github.com/Microsoft/hcsshim
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-20 23:15:33 +00:00
robogatikov 456ce7c086
feat: add new OverlayExtensionConfig CRD (#2892) 2024-08-20 15:48:44 +00:00
John Payne 68ede66cfa
[FIX] ci: Update AzCLI task to v2 (#2922)
* ci: Update AzCLI task to v2

* ci: add scriptType: "bash"
2024-08-19 16:51:26 +00:00
Evan Baker 4902139f48
chore: move cns from servercore to nanoserver (#2454)
feat: migrate CNS Windows to nanoserver and pin all SHAs

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2024-08-19 16:14:26 +00:00
John Payne b48007e05b
[fix] ci: Update expected cilium connectivity test namespace (#2926)
* fix: Update expected cilium connectivity test namespace

* ci: leverage --force-deploy to delete old cilium-test resources
2024-08-16 21:47:25 +00:00
John Payne 742ca41659
ci: Add node restart to cniv2 E2E (#2901)
* ci: add node restart to cniv2 E2E

* chore: change directory after scale

* chore: fixup nodepool

* chore: pipeline cleanup

* ci: cleanup test resources

* chore: address comments
2024-08-16 21:47:17 +00:00
dependabot[bot] f3ead91951
deps: bump github.com/prometheus/client_golang from 1.19.1 to 1.20.0 (#2920)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.19.1 to 1.20.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.19.1...v1.20.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-16 19:52:53 +00:00
Behzad Mirkhanzadeh bd5535eeca
fix: make statless CNI to return an empty state when CNI GET API is … (#2921)
feat: make statless CNI to return an empty state when CNI GET API is invoked
2024-08-15 14:47:19 -07:00
dependabot[bot] 9ff0bacf53
deps: bump golang.org/x/sys from 0.23.0 to 0.24.0 (#2909)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/sys/compare/v0.23.0...v0.24.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-14 15:23:03 +00:00
Paul Yu ea43a604ce
fix: pass right interface name to generate hns endpoint name as expected (#2915)
* fix endpointNames

* fix comments

* fix an linter issue

* remove network import on UT

* fix linter: rename local var

* remove the UT

* fix UTs

* start endpointIndex from 1
2024-08-13 19:51:08 +00:00