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

23 Коммитов

Автор SHA1 Сообщение Дата
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
rayaisaiah ea7e733637
chore: [NPM] Remove TLS Certifications in NPM (#2561)
Remove certs created in npm images
2024-02-07 17:16:20 +00:00
Mathew Merrick e735d6e435
ci: E2E Framework [Dev CLI] [6/6] (#2530)
add deploy cli
2024-02-05 17:17:48 +00:00
jshr-w 996c3fe363
ci: move hubble connectivity tests to nightly pipeline (#2310)
* [test] add hubble system test to CI (#2265)

* cilium configmap

* update hubble configs and add metrics test

* update pipeline yaml

* separate cilium+hubble config

* ci: move hubble connectivity test to nightly pipeline

* fix: move to correct file

* style: indentation change

* ci: update configmap to enable Hubble

* fix: move hubble test

* fix: move connectivity test before delete

* fix: add daemonset namespace

* fix: update command for configmap replace

* test no restart after replace

* fix: try apply instead of replace

* fix: add back restart ds

* add longer timeout after ds restart

* adjust timeout setup

* extend timeout, add logging

* add logging, change cm command

* update hubble configmap

* clean up sleep statements

* remove hubble connectivity test from PR pipeline

* use kubernetes utils

* fix style

Signed-off-by: jshr-w <144164353+jshr-w@users.noreply.github.com>

* update ds restart wait

* enable Hubble on nightly, disable on PR

* tag networkobservability test

* fix test call

* enable Hubble after Cilium is ready

* change location of hubble enable

---------

Signed-off-by: jshr-w <144164353+jshr-w@users.noreply.github.com>
Co-authored-by: Mathew Merrick <matmerr@users.noreply.github.com>
2023-10-20 05:56:45 +00:00
Hunter Gregory 9e337baff5
test: k8s scale testing with KWOK (#1879)
* k8s scale testing with kwok

* Update README.md

* fix netpol labels so that they apply to pods

* test connectivity

* parameterize scripts

* rename scale script and update readme

* clean up readme

* add NetPol after connectivity check

* retry connectivity loops

* fix connectivity test script and netpol

* script to capture cpu/mem

* fix typo in help

* kwok kubeconfig

* fix cpu and mem capture
2023-04-06 12:34:53 -07:00
Evan Baker dd91f431f7
remove workspace and add Make helpers to set it up (#1350)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-04-25 13:42:29 -05:00
Nitish Malhotra 4971211d4e
[NPM] Generate TLS certificates during docker build and bake into image for gRPC secure channels (#1262)
* Bake certificate generation into the docker image

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Fixes and changes for certs

- Fixed an issue with the root command not parsing the config
- Removed ca key after signing server cert
- Fixed lint errors

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Fix args in kustomize manifests

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Fix lint errors in cmd

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Address PR review for nit fixes

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>
2022-03-04 14:27:30 -08:00
Mathew Merrick 836ee3810e
feat: [NPM] Add config file and feature toggles (#979)
* package case

* package restructure

* add default config and toggles

* lint
2021-09-01 09:03:24 -07: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 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
Evan Baker 7f2cfc7b74
feat: use go mod to download tools like controller-gen (#884) 2021-05-28 11:34:04 -05: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
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 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 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
Onur 07650f3ace Added .vscode to .gitignore 2017-02-10 14:57:55 -08:00
Onur Filiz 4009aedc0e Added setup instructions to README 2016-11-11 18:04:48 -08:00
Onur Filiz 9529b84de6 Gitignore'd build artifacts 2016-10-06 15:51:20 -07:00
Onur Filiz 2e291a5b40 Updated git to ignore build artifacts 2016-09-13 11:57:32 -07:00
Sushant Sharma d901f532e8 Fix the case for dependencies path 2016-03-21 15:40:21 -07:00
Sushant Sharma 88cc019380 Install dependencies only on ubuntu (current supported version) 2016-03-08 10:21:13 -08:00
Sushant Sharma ee7c5793bb MultiCA: Work in progress 2016-02-01 22:05:06 -08:00
Sushant Sharma fa36b24c98 Checking in gitignore 2016-01-11 16:39:54 -08:00