@@ -269,7 +269,7 @@ metadata:
269
269
name : some-custom-controller-0001A
270
270
namespace : kube-system
271
271
spec :
272
- canLeadLease : kube-system/ some-custom-controller
272
+ canLeadLease : some-custom-controller
273
273
leaseDurationSeconds : 300
274
274
renewTime : " 2023-12-05T02:33:08.685777Z"
275
275
` ` `
@@ -380,11 +380,12 @@ The `Strategy` field signals to the coordinated leader election controller the
380
380
appropriate algorithm to use when selecting leaders.
381
381
382
382
We will allow the Coordinated Leader Election controller to create a Lease
383
- without a holder. If there are no candidate objects, the `Strategy` field will remain
384
- empty to indicate that the `Lease` is not managed by the CLE controller.
385
- Otherwise the strategy will always default to `MinimumCompatibilityVersion`.
386
- The `Lease` may also be updated by a third party to the desired
387
- ` spec.Strategy` if an alternate strategy is preferred. This may be done either by the candidates, users, or additional controllers.
383
+ without a holder. If there are no candidate objects, the `Strategy` field will
384
+ remain empty to indicate that the `Lease` is not managed by the CLE controller.
385
+ Otherwise the strategy will always default to `MinimumCompatibilityVersion`. The
386
+ ` Lease` may also be updated by a third party to the desired `spec.Strategy` if
387
+ an alternate strategy is preferred. This may be done either by the candidates,
388
+ users, or additional controllers.
388
389
389
390
# ### Alternative for Strategy
390
391
@@ -521,7 +522,7 @@ For the LeaseCandidate leases, a new lease will be created
521
522
type LeaseCandidateSpec struct {
522
523
// The fields BinaryVersion and CompatibilityVersion will be mandatory labels instead of fields in the spec
523
524
524
- // CanLeadLease is in the format <namespace>/<name>, indicating the namespace and name of the lease that the candidate may lead
525
+ // CanLeadLease indicates the name of the lease that the candidate may lead
525
526
CanLeadLease string
526
527
527
528
// Strategy indicates the preferred strategy for the coordinated leader election controller to use.
0 commit comments