common

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdName                 = "edge-health"
	TopologyZone            = "superedgehealth/topology-zone"
	HealthCheckUnitsKey     = "check-units"
	HealthCheckUnitEnable   = "unit-internal-check"
	EdgeHealthConfigMapName = "edge-health-config"
	HmacConfig              = "hmac-config"
	HmacKey                 = "hmackey"
	// if without hmac-config configmap and without hmackey, it will use default hmac key
	DefaultHmacKey   = "hSZbJsKAVmWTxRPi"
	MasterLabel      = "node-role.kubernetes.io/master"
	TokenFile        = "/var/run/secrets/kubernetes.io/serviceaccount/token"
	ReListTime       = 2 * time.Minute
	DefaultNamespace = "kube-system"
)

Variables

View Source
var (
	Namespace string
	PodName   string
	PodIP     string

	NodeName  string
	NodeIP    string
	ClientSet *kubernetes.Clientset
	// watch node only use metadata client, it will reduce a lot of apiserver bandwidth
	MetadataClientSet metadata.Interface
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL