-
Notifications
You must be signed in to change notification settings - Fork 260
Azure-NPM code refactoring #390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
f4b7352
parse selectors to kv based labels
61acc0b
TestsplitPolicy
3dbbd36
ParseLabel
d4ec358
addPolicy
557c25f
start deductPolicy
341b0ad
deduct network policy
4db9122
remvoe redundant print
77c36fc
Merge branch 'master' into mergePolicies
217d1a7
TestDeductPolicy
1dfe4b6
Merge branch 'master' into mergePolicies
14b8338
translatePolicy
36301c4
try build
6b81fd6
print policy
6f5f827
record newPolicy
1b4d2a1
pass in addedPolicy
1051448
translateIngress
bd509be
comma
3d6d7da
fix build err
4fed131
fix build err
ae390d6
remove
44c4f4c
change telemetry to message queue and add npm
ef51b86
remove [Azure-NPM] prefix
44e5f07
remove npmreport url
c647f71
merge with telemetry changes
7c821ed
fair scheduling
9045288
holds up to 1k reports for each type
5aa60e9
fix cap on reports
d2e9315
Merge branch 'npmTelemetry' into mergePolicies
7571856
rename const
5441b4c
handle ingress port rules
556f1a4
add comma
5e44b77
rename npNs
1d71e67
handle ipblock
2c834f4
going to remvoe nsChain
5ff7245
update translatePolicy_test.go
08923af
parse ingress namespaceSelector
7373f06
TODO: namespaceSelector & podSelector
3dc765b
rename sets and lists
609331c
rename iptablesMatchFlag to iptablesModuleFlag
648bc1c
reduce cases by generalizing operators
a0ef995
parse entry from selector
2d0bc2d
finished translateIngress
5963881
rename ParseSelector to parseSelector
0a00823
finished translateEgress
7761057
add prefix "ns-" to namespace ipsets
954d8a0
consistent hashing of metav1.LabelSelector
3f3d120
use podSelector as key for processedNpMap
01abe6d
address Kaleb's comments
4fd8b8a
consistent prefix to namespace
4ca90f6
testing
cf83290
address Kaleb's comment
0e87a71
handle empty selector
c75af9d
address empty selectors
cb4d551
fix ns prefix in translatePolicy_test.go
fb32b93
remove splitPolicy
ae24b7a
add drop entries for each targetSelector
0a36d09
allow external traffic
1b8dbae
make protocol and port optional
7fbc4f7
need to fix order of sets and lists gen from sel
bda22cd
access selector through sorted order
534767c
normal networkpolicies unit tests done
17fa5a3
remove extra ns-
eef1363
finished translatePolicy unit tests
3e0c0bf
merge with master
65c6ce6
address jaeryn's comments
5a3d5cd
add AZURE-NPM-KUBE-SYSTEM chain
20db12f
use nsName
d5ea6a3
process rules separately
ae2ccf3
defer translatePolicy result print
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.