Documentation ¶
Index ¶
Constants ¶
View Source
const ( //whether network isolate is enable in namespace NamespaceNPAnnotationKey = "kubesphere.io/network-isolate" NamespaceNPAnnotationEnabled = "enabled" NodeNSNPAnnotationKey = "kubesphere.io/snat-node-ips" AnnotationNPNAME = v1alpha1.NSNPPrefix + "network-isolate" //TODO: configure it DNSLocalIP = "169.254.25.10" DNSPort = 53 DNSNamespace = "kube-system" DNSServiceName = "kube-dns" DNSServiceCoreDNS = "coredns" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NSNetworkPolicyController ¶
type NSNetworkPolicyController struct {
// contains filtered or unexported fields
}
namespacenpController implements the Controller interface for managing kubesphere network policies and convery them to k8s NetworkPolicies, then syncing them to the provider.
func NewNSNetworkPolicyController ¶
func NewNSNetworkPolicyController( client kubernetes.Interface, ksclient ksnetclient.NetworkV1alpha1Interface, nsnpInformer nspolicy.NamespaceNetworkPolicyInformer, serviceInformer v1.ServiceInformer, nodeInformer v1.NodeInformer, workspaceInformer workspace.WorkspaceInformer, namespaceInformer v1.NamespaceInformer, policyProvider provider.NsNetworkPolicyProvider, options options.NSNPOptions) *NSNetworkPolicyController
NewnamespacenpController returns a controller which manages NSNSP objects.
Click to show internal directories.
Click to hide internal directories.