Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultKubeContentType = "application/vnd.kubernetes.protobuf" DefaultKubeNamespace = v1.NamespaceAll DefaultKubeQPS = 100.0 DefaultKubeBurst = 10 DefaultKubeUpdateNodeFrequency = 20 DefaultUpdatePodStatusWorkers = 1 DefaultUpdateNodeStatusWorkers = 1 DefaultQueryConfigMapWorkers = 4 DefaultQuerySecretWorkers = 4 DefaultUpdatePodStatusBuffer = 1024 DefaultUpdateNodeStatusBuffer = 1024 DefaultQueryConfigMapBuffer = 1024 DefaultQuerySecretBuffer = 1024 DefaultETCDTimeout = 10 DefaultEnableElection = false DefaultElectionTTL = 30 DefaultElectionPrefix = "/controller/leader" DefaultMessageLayer = "context" DefaultContextSendModuleName = "cloudhub" DefaultContextReceiveModuleName = EdgeControllerModuleName DefaultContextResponseModuleName = CloudHubControllerModuleName )
Config
View Source
const ( // module EdgeControllerModuleName = "controller" CloudHubControllerModuleName = "cloudhub" // Resource sep ResourceSep = "/" ResourceSliceLength = 5 ResourceSliceLengthQuery = 4 ResourceNodeIndex = 0 ResourceNodeIDIndex = 1 ResourceNamespaceIndex = 2 ResourceResourceTypeIndex = 3 ResourceResourceNameIndex = 4 ResourceNode = "node" // Group GroupResource = "resource" // Nvidia Constants // NvidiaGPUStatusAnnotationKey is the key of the node annotation for GPU status NvidiaGPUStatusAnnotationKey = "huawei.com/gpu-status" // NvidiaGPUDecisionAnnotationKey is the key of the pod annotation for scheduler GPU decision NvidiaGPUDecisionAnnotationKey = "huawei.com/gpu-decision" // NvidiaGPUScalarResourceName is the device plugin resource name used for special handling NvidiaGPUScalarResourceName = "nvidia.com/gpu" // NvidiaGPUMaxUsage is the maximum possible usage of a GPU in millis NvidiaGPUMaxUsage = 1000 )
Service level constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.