@@ -34,7 +34,7 @@ const (
34
34
35
35
// LeaseWatcher outlines the lease operations for the autopilot configuration.
36
36
type LeaseWatcher interface {
37
- StartWatcher (ctx context.Context , namespace string , name string ) (<- chan LeaseEventStatus , <- chan error )
37
+ StartWatcher (ctx context.Context , namespace string , name , identity string ) (<- chan LeaseEventStatus , <- chan error )
38
38
}
39
39
40
40
// NewLeaseWatcher creates a new `LeaseWatcher` using the appropriate clientset
@@ -57,7 +57,7 @@ type leaseWatcher struct {
57
57
58
58
var _ LeaseWatcher = (* leaseWatcher )(nil )
59
59
60
- func (lw * leaseWatcher ) StartWatcher (ctx context.Context , namespace string , name string ) (<- chan LeaseEventStatus , <- chan error ) {
60
+ func (lw * leaseWatcher ) StartWatcher (ctx context.Context , namespace string , name , identity string ) (<- chan LeaseEventStatus , <- chan error ) {
61
61
leaseEventStatusCh := make (chan LeaseEventStatus , 10 )
62
62
errorCh := make (chan error , 10 )
63
63
@@ -83,7 +83,7 @@ func (lw *leaseWatcher) StartWatcher(ctx context.Context, namespace string, name
83
83
leaderelection .WithNamespace (namespace ),
84
84
}
85
85
86
- leasePool , err := leaderelection .NewLeasePool (ctx , lw .client , name , leasePoolOpts ... )
86
+ leasePool , err := leaderelection .NewLeasePool (ctx , lw .client , name , identity , leasePoolOpts ... )
87
87
if err != nil {
88
88
errorCh <- fmt .Errorf ("failed to create lease pool: %w" , err )
89
89
cancel ()
0 commit comments