Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AnnotationNamespaceVPCError = " nsx.vmware.com/vpc_error"
)
Functions ¶
Types ¶
type NamespaceReconciler ¶
type NamespaceReconciler struct { Client client.Client Scheme *apimachineryruntime.Scheme NSXConfig *config.NSXOperatorConfig VPCService types.VPCServiceProvider }
NamespaceReconciler process namespace create/delete event Using vpcservice provider instead of vpc service to prevent invoking method that should be exposed to other module.
func (*NamespaceReconciler) Reconcile ¶
VPC creation strategy: We suppose namespace should have following annotations: - "nsx.vmware.com/vpc_name": "<Namespace Name>/<Supervisor ID>" If the ns contains this annotation, first check if the namespace in annotation is the same as the one in ns event, if yes, create an infra VPC for it. if not, skip the whole ns event as the infra VPC will be created its corresponding ns creation event. - "nsx.vmware.com/vpc_network_config":"<Supervisor ID>" If ns do not contains "nsx.vmware.com/vpc_name" annotation. Use this annotation to handle VPC creation. VPC will locate the network config with the CR name, and create VPC using its config. - If the ns do not have either of the annotation above, then we believe it is using default VPC, try to search default VPC in network config CR store. The default VPC network config CR's name is "default".
Click to show internal directories.
Click to hide internal directories.