Documentation ¶
Index ¶
Constants ¶
View Source
const ( AnnotationAcquireTime = "openyurt.io/yurtctllock.acquire.time" AnnotationIsLocked = "openyurt.io/yurtctllock.locked" LockTimeoutMin = 5 )
Variables ¶
Functions ¶
func AcquireLock ¶
func AcquireLock(cli kubeclientset.Interface) error
AcquireLock tries to acquire the lock lock configmap/yurtctl-lock
func DeleteLock ¶ added in v0.6.0
func DeleteLock(cli kubeclientset.Interface) error
DeleteLock should only be called when you've achieved the lock. It will delete the yurtctl-lock configmap.
func ReleaseLock ¶
func ReleaseLock(cli kubeclientset.Interface) error
ReleaseLock releases the lock configmap/yurtctl-lock
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.