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

28 Коммитов

Автор SHA1 Сообщение Дата
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
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
Mathew Merrick 39c9ad3a72
test: Add Swift Testing Pipeline (#712)
* Add new Swift test scenarios
2021-01-20 11:00:32 -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
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 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
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
Mathew Merrick 644642b100
CNS IPAM for CNI (#584)
* Add IPAM to CNS for CNI
2020-07-13 17:37:49 -07:00
Jaeryn ab1f6fc75d
Limit and rotate NPM logs (#573) 2020-06-03 13:45:38 -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