Versions in this module Expand all Collapse all v3 v3.1.1 Dec 30, 2020 Changes in this version + const AnnotationNPNAME + const DNSLocalIP + const DNSNamespace + const DNSPort + const DNSServiceCoreDNS + const DNSServiceName + const NamespaceNPAnnotationEnabled + const NamespaceNPAnnotationKey + const NodeNSNPAnnotationKey + func ValidateCIDR(cidr string) (*net.IPNet, error) + type NSNPValidator struct + Client client.Client + func (v *NSNPValidator) Handle(ctx context.Context, req admission.Request) admission.Response + func (v *NSNPValidator) InjectDecoder(d *admission.Decoder) error + func (v *NSNPValidator) ValidateIPBlock(ipb *k8snet.IPBlock, fldPath *field.Path) field.ErrorList + func (v *NSNPValidator) ValidateNSNPPeer(peer *networkv1alpha1.NetworkPolicyPeer, peerPath *field.Path) field.ErrorList + func (v *NSNPValidator) ValidateNSNPSpec(spec *networkv1alpha1.NamespaceNetworkPolicySpec, fldPath *field.Path) field.ErrorList + func (v *NSNPValidator) ValidateNetworkPolicyPort(port *k8snet.NetworkPolicyPort, portPath *field.Path) field.ErrorList + func (v *NSNPValidator) ValidateServiceSelector(serviceSelector *networkv1alpha1.ServiceSelector, fldPath *field.Path) field.ErrorList + type NSNetworkPolicyController struct + func NewNSNetworkPolicyController(client kubernetes.Interface, ksclient ksnetclient.NetworkV1alpha1Interface, ...) *NSNetworkPolicyController + func (c *NSNetworkPolicyController) Run(threadiness int, reconcilerPeriod string, stopCh <-chan struct{}) error + func (c *NSNetworkPolicyController) Start(stopCh <-chan struct{}) error Other modules containing this package github.com/fearlesschenc/kubesphere