Skip to content

Commit

Permalink
Fix compilation error caused by the change of NewProvisionController
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Su <[email protected]>
  • Loading branch information
derekbit committed Feb 20, 2023
1 parent d8dbbec commit 43acdeb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,6 @@ func startDaemon(c *cli.Context) error {
return errors.Wrap(err, "unable to get k8s client")
}

serverVersion, err := kubeClient.Discovery().ServerVersion()
if err != nil {
return errors.Wrap(err, "Cannot start Provisioner: failed to get Kubernetes server version")
}

provisionerName := c.String(FlagProvisionerName)
if provisionerName == "" {
return fmt.Errorf("invalid empty flag %v", FlagProvisionerName)
Expand Down Expand Up @@ -269,7 +264,6 @@ func startDaemon(c *cli.Context) error {
kubeClient,
provisionerName,
provisioner,
serverVersion.GitVersion,
pvController.LeaderElection(false),
pvController.FailedProvisionThreshold(provisioningRetryCount),
pvController.FailedDeleteThreshold(deletionRetryCount),
Expand Down

0 comments on commit 43acdeb

Please sign in to comment.