package lease
import "k8s.io/component-helpers/apimachinery/lease"
Index ¶
Types ¶
type Controller ¶
Controller manages creating and renewing the lease for this component (kube-apiserver, kubelet, etc.)
func NewController ¶
func NewController(clock clock.Clock, client clientset.Interface, holderIdentity string, leaseDurationSeconds int32, onRepeatedHeartbeatFailure func(), renewInterval time.Duration, leaseName, leaseNamespace string, newLeasePostProcessFunc ProcessLeaseFunc) Controller
NewController constructs and returns a controller
type ProcessLeaseFunc ¶
type ProcessLeaseFunc func(*coordinationv1.Lease) error
ProcessLeaseFunc processes the given lease in-place
Source Files ¶
controller.go
- Version
- v0.32.2 (latest)
- Published
- Feb 13, 2025
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 2 months ago –
Tools for package owners.