Documentation
¶
Index ¶
Constants ¶
View Source
const ( NetworkLegacy = "legacy" NetworkStrict = "strict" NetworkSDN = "sdn" // For ipam plugin and spiderpool-agent use DefaultIPAMUnixSocketPath = "/var/run/spidernet/spiderpool.sock" )
Network configurations
View Source
const ( LogDebugLevelStr = "debug" LogInfoLevelStr = "info" LogWarnLevelStr = "warn" LogErrorLevelStr = "error" LogFatalLevelStr = "fatal" LogPanicLevelStr = "panic" )
Log level character string
View Source
const ( OwnerNone string = "None" OwnerDeployment string = "Deployment" OwnerStatefulSet string = "StatefulSet" OwnerDaemonSet string = "DaemonSet" OwnerUnknown string = "Unknown" OwnerReplicaSet string = "ReplicaSet" OwnerJob string = "Job" )
View Source
const ( PodRunning types.PodStatus = "Running" PodTerminating types.PodStatus = "Terminating" PodGraceTimeOut types.PodStatus = "GraceTimeOut" PodSucceeded types.PodStatus = "Succeeded" PodFailed types.PodStatus = "Failed" PodEvicted types.PodStatus = "Evicted" PodDeleted types.PodStatus = "Deleted" )
View Source
const ( AnnotationPre = "ipam.spidernet.io" AnnoPodIPPool = AnnotationPre + "/ippool" AnnoPodIPPools = AnnotationPre + "/ippools" AnnoPodRoutes = AnnotationPre + "/routes" AnnoPodDNS = AnnotationPre + "/dns" AnnoPodStatus = AnnotationPre + "/status" AnnoNSDefautlV4Pool = AnnotationPre + "/defaultv4ippool" AnnoNSDefautlV6Pool = AnnotationPre + "/defaultv6ippool" )
View Source
const ( SingleNICDefaultRoute types.DefaultRouteType = iota MultiNICDefaultRoute MultiNICNotDefaultRoute )
View Source
const ( SpiderpoolAgent = "spiderpool-agent" SpiderpoolController = "spiderpool-controller" SpiderpoolAPIGroup = "spiderpool.spidernet.io" SpiderFinalizer = SpiderpoolAPIGroup SpiderpoolAPIVersionV1 = "v1" SpiderIPPoolKind = "SpiderIPPool" SpiderEndpointKind = "SpiderEndpoint" SpiderReservedIPKind = "SpiderReservedIP" )
View Source
const ( SpiderControllerElectorLockName = SpiderpoolController + "-" + resourcelock.LeasesResourceLock QualifiedK8sObjNameFmt = "[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.