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

269 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] 25a73e8c30
deps: bump sigs.k8s.io/controller-runtime from 0.11.2 to 0.12.0 (#1376) 2022-05-13 22:57:38 +00:00
dependabot[bot] f860b1660c
vendor: bump github.com/google/go-cmp from 0.5.7 to 0.5.8 (#1353) 2022-05-06 16:58:15 +00:00
dependabot[bot] f9bb532fe3
vendor: bump google.golang.org/grpc from 1.45.0 to 1.46.0 (#1348) 2022-05-05 20:53:43 +00:00
dependabot[bot] 53c81536d1
vendor: bump k8s.io/apiextensions-apiserver from 0.23.5 to 0.24.0 (#1360) 2022-05-05 09:20:22 +00:00
dependabot[bot] d7a5b9eb57
vendor: bump k8s.io/client-go from 0.23.5 to 0.24.0 (#1361) 2022-05-05 02:51:40 +00:00
Evan Baker 41479d8de3
make zapai a module (#1334)
* make zapai a module

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

* add build tools module to workspace

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-04-25 10:05:29 -07:00
dependabot[bot] 5b3ed19805
vendor: bump github.com/spf13/viper from 1.10.1 to 1.11.0 (#1330)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.10.1 to 1.11.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.10.1...v1.11.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  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>
2022-04-14 17:22:43 -05: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
dependabot[bot] 9d1f202c52
vendor: bump sigs.k8s.io/controller-runtime from 0.11.1 to 0.11.2 (#1308) 2022-04-02 03:45:47 +00:00
dependabot[bot] 0ad7821b2a
vendor: bump k8s.io/klog/v2 from 2.60.0 to 2.60.1 (#1296) 2022-03-29 18:40:16 +00:00
dependabot[bot] ca8a85002d
vendor: bump google.golang.org/protobuf from 1.27.1 to 1.28.0 (#1297) 2022-03-29 02:32:45 +00:00
dependabot[bot] e384fdaa4b
vendor: bump k8s.io/klog/v2 from 2.50.2 to 2.60.0 (#1287) 2022-03-18 19:49:53 +00:00
dependabot[bot] 2e7b543265
vendor: bump k8s.io/client-go from 0.23.4 to 0.23.5 (#1286)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.23.4 to 0.23.5.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.23.4...v0.23.5)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  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>
2022-03-17 17:13:33 -05:00
dependabot[bot] 3b30e1615a
vendor: bump k8s.io/klog/v2 from 2.50.1 to 2.50.2 (#1285) 2022-03-17 17:10:47 +00:00
dependabot[bot] 83693b5c57
vendor: bump k8s.io/klog/v2 from 2.40.1 to 2.50.1 (#1284) 2022-03-17 00:55:38 +00:00
dependabot[bot] 031f9d7c4f
vendor: bump github.com/stretchr/testify from 1.7.0 to 1.7.1 (#1282) 2022-03-16 20:22:49 +00:00
dependabot[bot] cc78c9dfd4
vendor: bump google.golang.org/grpc from 1.44.0 to 1.45.0 (#1274) 2022-03-12 03:50:47 +00:00
dependabot[bot] c77bd5e7c6
vendor: bump github.com/spf13/cobra from 1.3.0 to 1.4.0 (#1276) 2022-03-12 01:21:27 +00:00
dependabot[bot] 06f91b959b
vendor: bump k8s.io/apiextensions-apiserver from 0.23.3 to 0.23.4 (#1250) 2022-02-21 21:56:46 +00:00
dependabot[bot] 3028ebdaae
vendor: bump k8s.io/client-go from 0.23.3 to 0.23.4 (#1251) 2022-02-18 20:50:56 +00:00
dependabot[bot] ce2bfa9acc
vendor: bump sigs.k8s.io/controller-runtime from 0.11.0 to 0.11.1 (#1245) 2022-02-16 20:09:17 +00:00
dependabot[bot] cfaeb12e34
vendor: bump go.uber.org/zap from 1.20.0 to 1.21.0 (#1226) 2022-02-08 22:11:04 +00:00
dependabot[bot] 494308df4e
vendor: bump k8s.io/apiextensions-apiserver from 0.23.0 to 0.23.3 (#1221) 2022-02-04 02:40:45 +00:00
dependabot[bot] 487b0a4d7d
vendor: bump k8s.io/client-go from 0.23.0 to 0.23.3 (#1212) 2022-02-03 08:24:30 +00:00
dependabot[bot] 4986bb6988
vendor: bump k8s.io/klog/v2 from 2.30.0 to 2.40.1 (#1213) 2022-02-03 04:45:16 +00:00
dependabot[bot] 24c41bd551
vendor: bump github.com/prometheus/client_golang from 1.11.0 to 1.12.1 (#1215) 2022-02-01 19:59:20 +00:00
dependabot[bot] 39cd7c0aee
vendor: bump github.com/billgraziano/dpapi from 0.3.0 to 0.4.0 (#1182) 2022-02-01 04:55:35 +00:00
dependabot[bot] 082510448a
vendor: bump github.com/google/go-cmp from 0.5.6 to 0.5.7 (#1214) 2022-02-01 04:54:34 +00:00
dependabot[bot] b42e8458cc
vendor: bump go.uber.org/zap from 1.19.1 to 1.20.0 (#1211) 2022-01-31 23:22:11 +00:00
dependabot[bot] 50a10c1d4c
vendor: bump github.com/spf13/viper from 1.9.0 to 1.10.1 (#1179) 2022-01-29 02:57:02 +00:00
dependabot[bot] a47c7c45a3
vendor: bump github.com/hashicorp/go-version from 1.3.0 to 1.4.0 (#1210) 2022-01-28 02:41:12 +00:00
dependabot[bot] 4b3f096145
vendor: bump google.golang.org/grpc from 1.40.0 to 1.44.0 (#1208)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.40.0 to 1.44.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.40.0...v1.44.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>
2022-01-27 15:38:00 -08:00
dependabot[bot] 726b7e4f30
vendor: bump github.com/spf13/cobra from 1.2.1 to 1.3.0 (#1180) 2022-01-27 22:21:04 +00:00
dependabot[bot] 35dcb32b18
vendor: bump sigs.k8s.io/controller-runtime from 0.9.5 to 0.11.0 (#1174) 2022-01-27 02:57:39 +00:00
Nitish Malhotra b6f04b6236
feat: [NPM] define transport shim layer using gRPC (#1163) 2021-12-14 11:52:28 -08:00
Evan Baker 2f5588b824
appinsights zapcore (#1158)
* feat: mvp appinsights zapcore

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

* update example

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

* changes from review comments

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2021-12-13 11:16:14 -08:00
dependabot[bot] 2fc8786343
vendor: bump k8s.io/client-go from 0.22.1 to 0.22.4 (#1148)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.22.1 to 0.22.4.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.22.1...v0.22.4)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  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>
2021-12-07 12:52:50 -08:00
dependabot[bot] 5a477a9f89
vendor: bump github.com/spf13/viper from 1.8.1 to 1.9.0 (#1157)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.8.1...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  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>
2021-12-06 18:15:46 -06:00
dependabot[bot] f31f6305c8
vendor: bump github.com/microsoft/ApplicationInsights-Go (#1146)
Bumps [github.com/microsoft/ApplicationInsights-Go](https://github.com/microsoft/ApplicationInsights-Go) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/microsoft/ApplicationInsights-Go/releases)
- [Commits](https://github.com/microsoft/ApplicationInsights-Go/compare/v0.4.3...v0.4.4)

---
updated-dependencies:
- dependency-name: github.com/microsoft/ApplicationInsights-Go
  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>
2021-12-06 14:12:37 -06:00
Vamsi Kalapala fa1c6864e5
fix: [NPM] using HCSShim fork to vendor until we have a bug fixed in main repo (#1153)
* fix: [NPM] fixing HCSShim vendor to a specific commit

* fix the name of setpolicy type

* fix Policy type

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

* replacing the HCSShim with fork because HCSShim master still has bug

* Fixing hnsfake

Co-authored-by: Evan Baker <rbtr@users.noreply.github.com>
2021-12-03 19:56:08 -06:00
Paul Miller 27ac431a6e
Use avast to retry init cns and register node. (#1087)
* stupid simple retry

* go lint fixes

* missed one //

* avast retry

* try out avast

* vendor

* try nad make linters happy

* fix wrap check
2021-11-05 13:20:26 -05: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
Mathew Merrick 9a847162ea
chore: update hcsshim for NPM (#961)
* rev to v0.8.22
2021-09-20 15:37:53 -07:00
Evan Baker 00ea58598d
update nnc manifest and add crd client (#985)
* regenerate nnc for apiext v1

* own crd lifecycle code

* init nnc crd client
2021-09-01 18:30:47 -05:00
Evan Baker 81a44f3cf3
fix: correct nnc embed package naming and update apiext version to v1 (#982)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2021-08-30 12:48:10 -05:00
Quang Nguyen 91695d85f0
[NPM] NPM Debug CLI (#971)
* CLI functions

* fix whitespace bug in CIDRmatch + go lint issue

* update main.go from master

* addressed CR comments

* addressed Matt's comments

* make config flag to be a root cmd flag  only

* make config flag to be a root cmd flag  only
2021-08-17 19:29:27 -04:00
Quang Nguyen 25daa48b30
[NPM] Dataplane Parser + Dataplane Converter + Traffic Analyzer (#907)
* organized iptable parser code

* print functions for iptable object + comments and testing template for parser

* add converter package + code refractoring parser

* fix bug where the program throws an error when the length of an option's value is 1 in parser

* add tests for parseTarget and parseModule + code refactoring for parser

* add ConvertIptablesObject func

* tests for parser

* add converter UT

* experimenting with protobuff

* used constructors, getters and setters for iptables' struct

* export GrapIptableLock

* add parser for negation in npm rules + add SetInfo obj for converter + update protobuf

* move folder into npm + changes to converter

* change hack folder name + move within npm

* make changes to converter

* change gitignore

* temporarily remove http folder

* converter ut

* fix converter tests + partial tests for tupleProcessor

* fix go lint issue with json unmarshal

* changed npmcache.exec type to interface to pass tests in converter

* change back policy file

* add conditions to get npm cache and iptable-save from node

* Update const.go

* Update converter.go

* Update converter_test.go

* Changes to return error statements in converter.go

* Update converter_test.go

* Change import path

* Update iptables strings method

* Update parser.go

* Update parser_test.go

* Update networkTupleProcessor.go

* update tupleProcessor_test.go

* Delete main.go

* resolve golint issue

* fix returning errors in tupleProcessor

* changed unit tests so they are more aligned with guidelines + add cidrblocks set type placeholder

* pull updates from master

* move everything to the datplane package

* refactoring code

* fix golint issues

* java style is not the way to Go ;)

* add more comments to the parseLine function

* fix more golint issues

* fix line length linting issues

* fix more linting issues

* add parse CIDR Block functionality

* minor bug fixes + more test coverage

* fix remaining lint issues

* minor linting issue

* fix the final linting issus this time for real

* for real

* remove todos

* addressed some CR reviews

* moved parser and iptables to their own package

* change package name

* minor comments

* change package name

* addressed more CR comments

* minor linting issue

* rename tupleProcessor to trafficAnalyzer

* remove a test that used exec

* fix parse iptable logic + re adding the previous test
2021-08-12 12:34:01 -04:00
Evan Baker fc88940256
chore: update controller-runtime (#957)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2021-07-30 12:28:21 -05:00
Mathew Merrick ae9aedcfdf
[CNI] Parse CNI version in CNI client (#899)
* get CNI version

* update makefile to produce cni-manager image

* return proper type
2021-06-18 10:20:03 -07:00
Pengfei Ni de466f58e7
feat: add multi-tenant NetworkContainer controller (#876) 2021-06-03 20:49:00 -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 6312309d61
[NPM] Use utilexec for IPSet calls and fakeexec in podcontroller tests (#861)
* use utilexec for IPSet syscalls
2021-05-06 12:08:26 -07:00
JungukCho d8169318f1
[NPM] support network policy controller and its unit tests (#849)
* first version of network policy controller and its unit tests

* update reconcile and deleteNetworkPolicy function to correctly install and uninstall default Azure NPM chain.

* To explicitly manage default Azure NPM chain in deleteNetworkPolicy function

* correct comments and delete unused variable

* fix missed returing errors in codes

* Correct to check DeletionTimestamp and DeletionGracePeriodSeconds variables

* removed placeholder functions in network policy controoler and added more test cases (e.g., update and adding multiple network policies)

* - applied comments (use explict names, locating lock in a better place)

* add two methods to save and restore iptables in unit test

* comment out unused function

* early filter in updateNetworkPolicy function if they are the same network policies. Update unit tests to test more network policies events

* - start using klog package instead of log package

* remove unneeded defer for lock

* Locate of adding and deleting network policy object from our network policy cache in a right place. Correct prometheus metric code.

* use cached network policy key instead of network policy object as method parameter in cleanUpNetworkPolicy

* remove redundant check

* Remove ns- prefix as key in RawNpMap. Update UT to check prometheus metrics. Applied better naming and removed redundancy codes.

* minor update for varialbe names

* remove dependency between UT by re-initializing metrics. Correct message.
2021-04-14 10:35:36 -07:00
msvik 28cf37bc9d
CNI changes to support baremetal scenario (#835)
* Modify CNI for windows baremetal scenario in Azure

* Fix the CNI result for baremetal case

* Addressed PR comments from Tamilmani and Ramiro

* Remove azure-telemetry.exe from cni-baremetal package

* Fix formatting in logging

* Addressed Ramiro's PR review comments

* Formatting fix in printf

Co-authored-by: VK <abc@gmail.com>
2021-03-26 10:28:42 -07:00
Mathew Merrick d169929048
Npm debug tools (#817)
* add inital debug tools

* export member variables for debug api

* add dependencies

* update metrics and tests

* remove refactor artifacts
2021-03-11 11:47:34 -08:00
Ramiro 3ed6949788 ran go mod vendor 2020-11-30 15:27:41 -08:00
aegal 169d7d7935
Updates for TLS: reading from encrypted PEM file & hostname fix (#742)
* tls fixes

* updating test

* update to support linux as well

* update to support linux and windows

* remove old test file

* pushing minor changes
2020-11-30 14:05:25 -08:00
Paul Miller d68c75cd5e
log what ips we got and make defer pickup when no ips are found (#720)
* log what ips we got and make defer pickup when no ips are found

* fix typos

* differentiate success from failure
2020-11-16 10:28:16 -08:00
aegal 13677e6092
changes to support http and https for CNS (#717)
* changes to support http and https for CNS

* correct small typo

* address feedback

* address feedback

* rename file

* small fix

* small fix

* fixing issue with cert not found
2020-11-06 09:51:30 -08:00
Mathew Merrick 7bd8a2644d
Add "acn" cli tool to install and manage Azure CNI (#688)
* tail azure-vnet.logs

* dockerfile update

* installer fixes

* remove external deps

* move to cli design

* manager cmd

* update vendor

* minor fixes

* logs

* update makefile

* Update manager-master.yaml

* Update manager-agent.yaml
2020-10-20 14:00:40 -07:00
Mathew Merrick 41232c134d
CNI using CNS IPAM (#597)
* Configure CNI to use CNS IPAM
2020-09-29 14:43:19 -07:00
Ramiro Gamarra cf1a557a80 vendoring dependencies 2020-07-15 13:04:50 -07:00
Ramiro Gamarra 48b9fb8a14 updating go mod and sum 2020-07-15 11:28:31 -07:00
neaggarwMS 508a2bb9c7
Changes for caching pod ip (#600)
* Changes for cahing pod ip

* Test fix for API changes

* added test

* Fixed merge conflicts

* Add tests for pod cache

* Add one more check to validate the cache

* Incorporated the comment

Co-authored-by: neaggarw <neaggarwMS@users.noreply.github.com>
2020-07-10 12:49:18 -07:00
Matthew Long 9e154908c2
NetworkConfig CRD defintions (#570)
* NetworkConfig CRD defintions

* v1 to v1alpha, release/request thresholds, naming

* networkconfig to nodnetworkconfig, renaming vars

* subnet to subnetID, added comment for netmask

* removed counts
2020-06-02 15:13:56 -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
PrIce Qian 512ffed5ef
Add IPAM unit tests && Using ginkgo replace the origin go test (#508)
* 1. Add IPAM unit tests
2. Using ginkgo instead of the origin go test

* fix go mod
2020-04-09 01:10:24 -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