Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: DefaultPeerEndpointReconcilerTTL = 15 * time.Second causes build error #172

Closed
xhd2015 opened this issue May 31, 2024 · 0 comments
Closed
Labels
bug Something isn't working var_mock variable mock

Comments

@xhd2015
Copy link
Owner

xhd2015 commented May 31, 2024

Additional to #142

Code: https://github.com/kubernetes/kubernetes/blob/39c6bc31363ddce17edcc85fe6e3a15d5bf928e6/pkg/controlplane/apiserver/peer.go#L89

const DefaultPeerEndpointReconcilerTTL = 15 * time.Second

func xx(){
	ttl := DefaultPeerEndpointReconcilerTTL

	reconciler, err := reconcilers.NewPeerEndpointLeaseReconciler(config, "/peerserverleases/", ttl)
}

Msg:

Error: pkg/controlplane/apiserver/peer.go:89:94: cannot use ttl (variable of type int) as time.Duration value in argument to reconcilers.NewPeerEndpointLeaseReconciler
@xhd2015 xhd2015 added bug Something isn't working var_mock variable mock labels May 31, 2024
@xhd2015 xhd2015 closed this as completed May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working var_mock variable mock
Projects
None yet
Development

No branches or pull requests

1 participant