Documentation ¶
Index ¶
- Constants
- Variables
- func GetDefaultSelector(val string) (labels.Selector, error)
- func GetGridValuesFromNode(nodeLister corelisters.NodeLister, gridUniqKey string) ([]string, error)
- func GetNodesSelector(nodes ...*corev1.Node) (labels.Selector, error)
- func IsConcernedObject(objMeta metav1.ObjectMeta) bool
Constants ¶
View Source
const ( ServiceTopology featuregate.Feature = "ServiceTopology" EndpointSlice featuregate.Feature = "EndpointSlice" EvenPodsSpread featuregate.Feature = "EvenPodsSpread" TopologyAnnotationsKey = "topologyKeys" )
View Source
const ( // GridSelectorName is the selector key name for controller to retrieve deployments GridSelectorName = "superedge.io/grid-selector" // GridSelectorKey corresponds to gridUniqKey of the custom-defined workload GridSelectorUniqKeyName = "superedge.io/grid-uniq-key" // TemplateHashKey is a key for storing template's hash value in labels. TemplateHashKey = "superedge.io/template-hash-key" // Indicate this app is for federation, "yes" or "no" FedrationKey = "superedge.io/fed" // Indicate this app has been distributed FedrationDisKey = "superedge.io/dis" // ClusterId of managed cluster id FedManagedClustIdKey = "clusters.clusternet.io/cluster-id" // Target namespace of app in managed cluster FedTargetNameSpace = "superedge.io/target-namespace" )
View Source
const ( // maxRetries is the number of times a kind of workload will be retried before it is dropped out of the queue. // With the current rate-limiter in use (5ms*2^(maxRetries-1)) the following numbers represent the times // a resource is going to be requeued: // // 5ms, 10ms, 20ms, 40ms, 80ms, 160ms, 320ms, 640ms, 1.3s, 2.6s, 5.1s, 10.2s, 20.4s, 41s, 82s MaxRetries = 15 DeploymentGridKind = "DeploymentGrid" StatefulSetGridKind = "StatefulSetGrid" ServiceGridKind = "ServiceGrid" DefaultTemplateName = "default" ParentClusterSecretNamespace = "clusternet-system" ParentClusterSecretName = "parent-cluster" ParentURLKey = "parent-url" CreateError = "CreateError" UpdateError = "UpdateError" DeleteError = "DeleteError" )
Variables ¶
View Source
var DefaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{ ServiceTopology: {Default: false, PreRelease: featuregate.Alpha}, EndpointSlice: {Default: false, PreRelease: featuregate.Beta}, EvenPodsSpread: {Default: false, PreRelease: featuregate.Alpha}, }
Functions ¶
func GetGridValuesFromNode ¶
func GetGridValuesFromNode(nodeLister corelisters.NodeLister, gridUniqKey string) ([]string, error)
func IsConcernedObject ¶
func IsConcernedObject(objMeta metav1.ObjectMeta) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.