Documentation ¶
Index ¶
- Constants
- func NewExternalIPRanger(reject, admit []*net.IPNet, allowIngressIP bool) *externalIPRanger
- func NewRestrictedEndpointsAdmission(restrictedNetworks []*net.IPNet) *restrictedEndpointsAdmission
- func ParseRejectAdmitCIDRRules(rules []string) (reject, admit []*net.IPNet, err error)
- func ParseSimpleCIDRRules(rules []string) (networks []*net.IPNet, err error)
- type NetworkSlice
Constants ¶
View Source
const ExternalIPPluginName = "ExternalIPRanger"
View Source
const RestrictedEndpointsPluginName = "openshift.io/RestrictedEndpointsAdmission"
Variables ¶
This section is empty.
Functions ¶
func NewExternalIPRanger ¶
NewConstraint creates a new SCC constraint admission plugin.
func NewRestrictedEndpointsAdmission ¶
NewRestrictedEndpointsAdmission creates a new endpoints 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.
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.