Skip to content

Commit

Permalink
Merge pull request #190 from Parthiba-Hazra/main
Browse files Browse the repository at this point in the history
change wait.ErrWaitTimeout method to wait.Interrupted() as wait.ErrWaitTimeout was deprecated
  • Loading branch information
adrienjt committed Jul 26, 2023
2 parents 1c8f378 + 3aa7460 commit bb94f5e
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 bb94f5e

Please sign in to comment.