Documentation ¶
Index ¶
Constants ¶
View Source
const ExternalIPPluginName = "ExternalIPRanger"
Variables ¶
This section is empty.
Functions ¶
func NewExternalIPRanger ¶
NewConstraint creates a new SCC constraint admission plugin.
func ParseRejectAdmitCIDRRules ¶
ParseRejectAdmitCIDRRules calculates a blacklist and whitelist from a list of string CIDR rules (treating a leading ! as a negation). Returns an error if any rule is invalid.
func RegisterExternalIP ¶
Types ¶
type NetworkSlice ¶
NetworkSlice is a helper for checking whether an IP is contained in a range of networks.
Click to show internal directories.
Click to hide internal directories.