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

2460 Коммитов

Автор SHA1 Сообщение Дата
QxBytes 8c8345627c remove unused map (noop) 2024-11-21 13:53:57 -08:00
QxBytes 846ed20f81 remove stutter 2024-11-19 12:16:04 -08:00
QxBytes 27832a148e address feedback 2024-11-19 12:00:10 -08:00
QxBytes c783032481 remove writing telemetry events to the log file 2024-11-19 11:28:44 -08:00
QxBytes 9daf6d3aef fix comment 2024-11-18 17:12:36 -08:00
QxBytes 094bbc9cae remove duplicate error telemetry 2024-11-18 16:20:39 -08:00
QxBytes 73bd8718cb add unit tests and simplify
we use SendError where we would have previously called reportPluginError (no log emitted)
we don't set error message in cni report because the error message and event message fields both end up in the Message field in the cni telemetry service
2024-11-18 13:28:05 -08:00
QxBytes 787eaef8d3 refactor plugin main
remove reflect
remove duplicated telemetry and telemetry buffer
remove unused fields in report manager
force access to telemetry client fields through methods
move telemetry start/connect code closer to start of plugin execution
2024-11-18 11:50:46 -08:00
QxBytes dd9ca83d36 remove newly added telemetry events
we will split this part of the pr into its own pr
a telemetry event was added back which was previously removed
undo this pr to add those telemetry statements back
2024-11-15 13:30:52 -08:00
QxBytes 519c293576 set operation id before sending any events for sampling 2024-11-15 12:42:40 -08:00
QxBytes c016472708 add unit tests 2024-11-14 14:11:11 -08:00
QxBytes 061380312f address linter issues 2024-11-14 12:17:55 -08:00
QxBytes d3416128b2 add mutex 2024-11-13 15:56:53 -08:00
QxBytes fd76e5a7eb replace nwcfg subcontext with containerid for correlation 2024-11-11 15:37:45 -08:00
QxBytes 77de27f890 add new telemetry logs for debugging 2024-11-11 02:59:35 -08:00
QxBytes 04513181e3 send telemetry for ipam config, epinfo, and error on cni add completion 2024-11-07 16:31:07 -08:00
QxBytes 8046c63598 move telemetry to dedicated package and create package variable 2024-11-07 10:30:40 -08:00
rejain456 b7190c88c0
[NPM Lite] Querying L1VH + Non-L1VH Endpoints (#3086)
* Added logic to make 2 hns calls for 2 different endpoint states

* added querying to l1vh hns only if npm lite is enabled

* added logging line for debugging

* updated config

* removed logging lines

* fixing go lint err

* refactored based on pr comments

* replaced with errors.Wrap and fixed a logging statement

* added if condition with logic

* changed errl1vh to err

* added omments

* added logging lines for debugging

* added npm lite enabled log debugging

* spacing

* syntax

* added logs for debugging

* optimizing api load

* added function to remove common endpoints

* added logging for debugging

* removed npm lite check

* removed all the debugging comments

* added extra unit test cases

* added additional unit tests

* removed protobuf code

* fixed comment

* fixed a spelling error

* resolved pr comments

* updated a comment

* revised comment

* resolved further pr comments

* changed back to for loop from range
2024-11-05 22:51:08 +00:00
Evan Baker 3c4641c1c8
feat: add IPConfig state logs/metrics to Request/Release handlers (#3050)
* feat: add IPConfig state logs/metrics to Request/Release handlers

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

* make metrics recording async so that it will not block ip requests

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

---------

Signed-off-by: Evan BaKer <rbtr@users.noreply.github.com>
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2024-11-05 20:14:30 +00:00
Santhosh Prabhu b5a7f14ecd
test: pipeline changes for cilium nodesubnet (#3083)
* chore: separate pipeline changes for cilium nodesubnet

* fix:make linter happy

* chore: remove node subnet cilium version tag

* fix: make private fork version tags compatible
2024-11-05 00:26:39 +00:00
Santhosh Prabhu 1c1bbaa924
feat: support for cilium + nodesubnet (#3073)
* feat: support for cilium + nodesubnet

* fix: make linter happy

* fix: make linter happy

* fix: make linter happy

* test: add test for nodesubnet

* chore: add missing files

* nicer comment

* chore: fix comment typo

* fix: update cns/restserver/nodesubnet.go

Co-authored-by: Timothy J. Raymond <timraymond@users.noreply.github.com>
Signed-off-by: Santhosh  Prabhu  <6684582+santhoshmprabhu@users.noreply.github.com>

* fix: update cns/restserver/restserver.go

Co-authored-by: Timothy J. Raymond <timraymond@users.noreply.github.com>
Signed-off-by: Santhosh  Prabhu  <6684582+santhoshmprabhu@users.noreply.github.com>

* refactor: address comments

* fix: address comments

* chore:comment cleanup

* fix: do not use bash in ip config update

* fix: address comments

* fix: make linter happy

* chore: move pipeline changes out

* test: more elaborate test including checks on IP pool state

* fix: use comments suitable for documentation

Co-authored-by: Timothy J. Raymond <timraymond@users.noreply.github.com>
Signed-off-by: Santhosh  Prabhu  <6684582+santhoshmprabhu@users.noreply.github.com>

* chore: address comments

* chore:make linter happy

* fix: address comments

* chore: typo

* chore: address comments

* fix: update comments

---------

Signed-off-by: Santhosh  Prabhu  <6684582+santhoshmprabhu@users.noreply.github.com>
Co-authored-by: Timothy J. Raymond <timraymond@users.noreply.github.com>
2024-11-05 00:24:57 +00:00
Alexander 7f0339a294
fix: pass ai metadata to telemetry during cni image build (#3095)
* fix log on ai telemetry handle create error

* fix failure to pass cni ai id at build time for cni images

* address feedback

* move ai id to hardcoded variable

* update unit test

* Revert "move ai id to hardcoded variable"

This reverts commit 666c2b0a8f.

* fix typo
2024-11-04 21:39:37 +00:00
John Payne 7b188cc08e
ci: hardcode docker container build image (#3102) 2024-11-04 20:22:11 +00:00
dependabot[bot] 287cce8dc4
deps: bump github.com/fsnotify/fsnotify from 1.7.0 to 1.8.0 (#3099)
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/fsnotify/fsnotify/releases)
- [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
  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-11-01 22:09:24 +00:00
robogatikov 5d14000083
feat: make OverlayExtensionConfig `ExtensionIPRange` field immutable (#3056)
feat: make extensionIPRange field immutable
2024-11-01 17:35:47 +00:00
Camryn Lee 2938c1feb6
ci: nodepool scale down for cilium pipeline (#3096)
* nodepool scale down instead of vmss scale

* replace make target for scale-vmss with scale-nodes

* set scale down to 5

* add nodepool name to scale target
2024-11-01 16:27:50 +00:00
dependabot[bot] 97bcdb55d1
deps: bump github.com/Microsoft/hcsshim from 0.12.8 to 0.12.9 (#3093)
Bumps [github.com/Microsoft/hcsshim](https://github.com/Microsoft/hcsshim) from 0.12.8 to 0.12.9.
- [Release notes](https://github.com/Microsoft/hcsshim/releases)
- [Commits](https://github.com/Microsoft/hcsshim/compare/v0.12.8...v0.12.9)

---
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-10-31 13:38:41 +00:00
Ramiro 19156a71a3
Adding availability zone to nnc spec (#3092)
* adding availability zone to nnc spec

* adding optional kubebuilder annotation
2024-10-31 13:16:30 +00:00
dependabot[bot] 423a1c7cf3
deps: bump github.com/prometheus/common from 0.60.0 to 0.60.1 (#3087)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.60.0 to 0.60.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.60.0...v0.60.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  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-10-29 20:05:22 +00:00
Santhosh Prabhu eb059cbe0b
fix: update pipeline to handle an extra character 'v' in version tag (#3089)
* fix: update pipeline to handle v in version tag

* chore: empty commit for pipeline run
2024-10-29 10:01:04 +00:00
dependabot[bot] 571afbcc31
deps: bump k8s.io/kubelet from 0.30.5 to 0.30.6 (#3082)
Bumps [k8s.io/kubelet](https://github.com/kubernetes/kubelet) from 0.30.5 to 0.30.6.
- [Commits](https://github.com/kubernetes/kubelet/compare/v0.30.5...v0.30.6)

---
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-10-23 16:29:07 +00:00
Camryn Lee 9f5392ca15
chore: delete podAntiAffinity from cilium daemonsets in test (#3078)
* delet podAntiAffinity from cilium daemonsets

* add 1.14 dualstack changes
2024-10-23 16:05:56 +00:00
ZetaoZhuang 7d6ce69115
change apipa network gw address from .1 to .2 (#2933)
* change gw address to .2

* refactor and add UTs

* fix lint

* fix loopback adapter default gw address

* remote address should always be .1

* address comment

* adjust comment

* ddress comment

* fix func comment

* fix loopback adapter gw
2024-10-22 19:32:56 +00:00
rejain456 2085f66058
[NPM Lite] Fix for NPM Lite Yaml File (#3077)
hot fix for npm lite yaml file
2024-10-22 17:14:40 +00:00
dependabot[bot] ecf66fea86
deps: bump github.com/Microsoft/hcsshim from 0.12.7 to 0.12.8 (#3080)
Bumps [github.com/Microsoft/hcsshim](https://github.com/Microsoft/hcsshim) from 0.12.7 to 0.12.8.
- [Release notes](https://github.com/Microsoft/hcsshim/releases)
- [Commits](https://github.com/Microsoft/hcsshim/compare/v0.12.7...v0.12.8)

---
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-10-22 15:21:03 +00:00
dependabot[bot] 2836a9dab6
deps: bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.14.0 to 1.16.0 (#3074)
deps: bump github.com/Azure/azure-sdk-for-go/sdk/azcore

Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) from 1.14.0 to 1.16.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.14.0...sdk/azcore/v1.16.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  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-10-18 15:42:20 +00:00
Santhosh Prabhu f91ab26336
feat: create a dummy NC to store secondary IPs in nodesubnet deployments with Cilium (#3057)
* WIP

* chore: first set of files for nodesubnet nc

* chore: add ipam reconciler interface

* feat: add ability to save fake nodesubnet nc

* fix: make linter happy, cleanup

* chore: cleanup

* fix: make linter happy

* fix: make linter happy

* fix: fix failing test

* refactor: remove public ipam reconciler interface

* fix: fix compile after unexporting interface

* refactor: break down IPAM reconciliation to address Evan's comment

* chore: fix comment

* fix:make linter happy

* fix: Address comments, add todo for Evan's feedback

* Address comments

* fix: fix tests
2024-10-17 23:59:40 +00:00
dependabot[bot] 5f4c36c1b6
deps: bump github.com/prometheus/client_golang from 1.20.4 to 1.20.5 (#3071)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.20.4 to 1.20.5.
- [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.4...v1.20.5)

---
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-10-16 20:58:40 +00:00
dependabot[bot] 7f12bd9848
deps: bump github.com/containernetworking/plugins from 1.5.1 to 1.6.0 in /azure-ipam (#3072)
deps: bump github.com/containernetworking/plugins in /azure-ipam

Bumps [github.com/containernetworking/plugins](https://github.com/containernetworking/plugins) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/containernetworking/plugins/releases)
- [Commits](https://github.com/containernetworking/plugins/compare/v1.5.1...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/containernetworking/plugins
  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-10-16 20:49:55 +00:00
dependabot[bot] bb1b415d9f
deps: bump github.com/axw/gocov from 1.1.0 to 1.2.1 in /build/tools (#3068)
Bumps [github.com/axw/gocov](https://github.com/axw/gocov) from 1.1.0 to 1.2.1.
- [Release notes](https://github.com/axw/gocov/releases)
- [Commits](https://github.com/axw/gocov/compare/v1.1.0...v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/axw/gocov
  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-10-16 20:31:43 +00:00
Alexander 2e8881348e
test: add uts for cni add function (#3069)
* add dualnic windows multitenancy test

* add linux multitenancy test

* add linux swiftv2 multi nic ep info test

* add windows swiftv2 infra with delegated ep info test

* add check to ensure epInfo.ifName is overwritten in add endpoint for linux swiftv2

* test options set in invoker propagate to all endpoint infos

* test dns in nwCfg propagates to all endpoint infos

* test options and data are created for each endpoint info

* address linter issues
2024-10-16 20:21:17 +00:00
Santhosh Prabhu b5046a001f
Make throttling nmagent fetches for nodesubnet more dynamic (#3023)
* feat(CNS): Early work on better throttling in NMAgent fetch for nodesubnet

* feat(CNS): Update NMAgent fetches to be async with binary exponential backoff

* chore: check for empty nmagent response

* test: update test for empty response

* style: make linter happy

* chore: fix some comments

* fix: Fix bug in refresh

* refactor: Address comments

* refactor: ignore primary ip

* refactor: move refresh out of ipfetcher

* test: add ip fetcher tests

* fix: remove broken import

* fix: fix import

* fix: fix linting

* fix: fix some failing tests

* chore: Remove unused function

* test: test updates

* fix: address comments

* chore: add missed file

* chore: add comment about static interval

* feat: address Evan's comment to require Equal method on cached results

* chore: add missed file

* feat: more efficient equality

* refactor: address Evan's comment

* refactor: address Tim's comment

* fix: undo accidental commit

* fix: make linter happy

* fix: make linter happy
2024-10-14 20:54:36 +00:00
Alexander 3ed0bcd0ca
ci: add wait before adding windows nodepool if cluster is in updating state (#3065)
* add windows node template first pass

* wait for cluster to exit updating state before adding windows nodepool

* remove change made for testing

* fix naming

* address feedback
2024-10-10 21:00:17 +00:00
dependabot[bot] f0412393c8
deps: bump github.com/Azure/azure-sdk-for-go/sdk/azidentity from 1.7.0 to 1.8.0 (#3060)
deps: bump github.com/Azure/azure-sdk-for-go/sdk/azidentity

Bumps [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.7.0...sdk/azcore/v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  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-10-10 20:49:11 +00:00
Evan Baker 6720e10414
chore: update build tools and regenerate CRDs (#3061)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2024-10-10 16:13:08 +00:00
Evan Baker dbdb22d901
chore: upgrade go toolchain to 1.23 (#3022)
* chore: update to go1.23

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

* set bpf-prog back to debian base image

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

---------

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2024-10-09 19:09:07 -05:00
dependabot[bot] 2f246d16f9
deps: bump google.golang.org/protobuf from 1.34.2 to 1.35.1 in /build/tools (#3058)
deps: bump google.golang.org/protobuf in /build/tools

Bumps google.golang.org/protobuf from 1.34.2 to 1.35.1.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  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-10-08 21:38:37 +00:00
Evan Baker e40cc6afdf
Update atomic fs writer to delay tempfile creation until Write() is called (#3044)
fix: update atomic fs writer to delay tmp creation until Write

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2024-10-08 18:25:37 +00:00
dependabot[bot] 79c2af56a5
deps: bump google.golang.org/protobuf from 1.34.2 to 1.35.1 (#3059)
Bumps google.golang.org/protobuf from 1.34.2 to 1.35.1.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  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-10-08 14:57:16 +00:00
dependabot[bot] cd505c8a68
deps: bump golang.org/x/time from 0.6.0 to 0.7.0 (#3052)
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.6.0 to 0.7.0.
- [Commits](https://github.com/golang/time/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  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-10-08 14:33:53 +00:00