Skip to content

Commit

Permalink
change wait.ErrWaitTimeout method to wait.Interrupted() as wait.ErrWa…
Browse files Browse the repository at this point in the history
…itTimeout is deprecated

Signed-off-by: Parthiba-Hazra <parthibahazra02@gmail.com>
  • Loading branch information
Parthiba-Hazra committed Jul 26, 2023
1 parent 1c8f378 commit 3aa7460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func startVirtualKubeletServers(ctx context.Context, agentCfg agentconfig.Config
}

certPEM, keyPEM, err := csr.GetCertificateFromKubernetesAPIServer(ctx, k)
if err == wait.ErrWaitTimeout {
if wait.Interrupted(err) {
utilruntime.HandleError(fmt.Errorf("timed out waiting for virtual kubelet serving certificate to be signed, pod logs/exec won't be supported"))
return
}
Expand Down

0 comments on commit 3aa7460

Please sign in to comment.