-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fact(network_policy): validate ClusterIP CIDR Ensure that --service-cluster-ip-range is a valid CIDR while controller is starting up. * fix(network_policy): parse/validate NodePort Validate the NodePort range that is passed and allow for it to be specified with hyphens which is what the previous example used to show and is more cohesive with the way NodePort ranges are specified when passed to the kube-apiserver. * test(network_policy): add tests for input validation * feat(network_policy): permit ExternalIP on input fixes #934 * fix(network_policy): ensure pos with index offset Because iptables list function now appears to be returning -N and -P items in the chain results, we need to account for them when taking into consideration the rule position. * fix(network_policy): add uuid to comments on ensure iptables list is now no longer keeping the position of parameters which means that we can't compare string to string. In absence of a better way to handle this, this adds a UUID to the comment string which can then be looked for when determining what position a rule occupies.
- Loading branch information
Showing
4 changed files
with
280 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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 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 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 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