Documentation ¶
Index ¶
Constants ¶
View Source
const ( MetricResTypeSecurityPolicy = "securitypolicy" MetricResTypeIPPool = "ippool" MetricResTypeNSXServiceAccount = "nsxserviceaccount" MetricResTypeSubnetPort = "subnetport" MetricResTypeStaticRoute = "staticroute" MetricResTypeSubnet = "subnet" MetricResTypeSubnetSet = "subnetset" MetricResTypeVPC = "vpc" MetricResTypeNamespace = "namespace" MetricResTypePod = "pod" MetricResTypeNode = "node" LabelK8sMasterRole = "node-role.kubernetes.io/master" LabelK8sControlRole = "node-role.kubernetes.io/control-plane" )
Variables ¶
View Source
var ( ResultNormal = ctrl.Result{} ResultRequeue = ctrl.Result{Requeue: true} // for k8s events that need to retry in short loop, eg: namespace creation ResultRequeueAfter10sec = ctrl.Result{Requeue: true, RequeueAfter: 10 * time.Second} // for unstable event, eg: failed to k8s resources when reconciling, may due to k8s unstable ResultRequeueAfter5mins = ctrl.Result{Requeue: true, RequeueAfter: 5 * time.Minute} ServiceMediator = mediator.ServiceMediator{} )
Functions ¶
func GetDefaultSubnetSet ¶
func NodeIsMaster ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.