k8snetworkplumbingwg / multi-networkpolicy Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Now that K8s v1.21+ supports endPort in NetworkPolicyPort field, should we also add it to multi-networkpolicy
CRD?
endPortinteger | If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort
must be equal or greater than port. This feature is in Alpha state and should be enabled using the Feature Gate
"NetworkPolicyEndPort".
I got some feedback about the repository, to make current code separate from implementation and APIs for further implementation, as follows:
+1 to the comment, so think about it. It would be discussed in next NPWG meeting.
Use case: User can add net-attach-def name in policy to specify which net-attach-def is the target
With this commit (1df4750) it looks like the Reflector used for multi-networkpolicy cannot get the policies with the following error message:
reflector.go:178] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:125: Failed to list *v1beta1.MultiNetworkPolicy: the server could not find the requested resource (get multi-networkpolicies.k8s.cni.cncf.io)
Reverting the commit fixes the problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.