Skip to content

Commit

Permalink
migrate from endpointleases to leases (#711)
Browse files Browse the repository at this point in the history
Co-authored-by: Himanshu Sharma <himanshu.sharma10@sap.com>
  • Loading branch information
acumino and himanshu-kun authored Jul 22, 2022
1 parent 3866e7b commit d3fbf0c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion kubernetes/deployment/in-tree/control-cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ rules:
- nodes/status
- configmaps
- secrets
- endpoints
- events
verbs:
- create
Expand Down
1 change: 0 additions & 1 deletion kubernetes/deployment/in-tree/target-cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ rules:
- ""
resources:
- nodes
- endpoints
- replicationcontrollers
- pods
verbs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ rules:
- nodes/status
- configmaps
- secrets
- endpoints
- events
verbs:
- create
Expand Down
1 change: 0 additions & 1 deletion kubernetes/deployment/out-of-tree/target-cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ rules:
- ""
resources:
- nodes
- endpoints
- replicationcontrollers
- pods
verbs:
Expand Down
3 changes: 1 addition & 2 deletions pkg/util/client/leaderelectionconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ func DefaultLeaderElectionConfiguration() options.LeaderElectionConfiguration {
LeaseDuration: metav1.Duration{Duration: DefaultLeaseDuration},
RenewDeadline: metav1.Duration{Duration: DefaultRenewDeadline},
RetryPeriod: metav1.Duration{Duration: DefaultRetryPeriod},
// TODO(acumino): migrate default to `leases` in one of the next releases
ResourceLock: rl.EndpointsLeasesResourceLock,
ResourceLock: rl.LeasesResourceLock,
}
}

Expand Down

0 comments on commit d3fbf0c

Please sign in to comment.