Skip to content

Commit 04cc436

Browse files
committed
fix: NewDriver logic changed from 1.32 to 1.33
Signed-off-by: Paul Bastide <[email protected]>
1 parent a29b44a commit 04cc436

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/power-dra-kubeletplugin/driver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func NewDriver(ctx context.Context, config *Config) (*driver, error) {
4141
kubeletplugin.KubeClient(config.coreclient),
4242
kubeletplugin.NodeName(config.flags.nodeName),
4343
kubeletplugin.DriverName(DriverName),
44-
kubeletplugin.RegistrarDirectoryPath(PluginRegistrationPath),
45-
kubeletplugin.PluginDataDirectoryPath(DriverPluginSocketPath),
44+
kubeletplugin.RegistrarDirectoryPath("/var/lib/kubelet/plugins_registry"),
45+
kubeletplugin.PluginDataDirectoryPath(DriverPluginPath),
4646
kubeletplugin.GRPCVerbosity(99))
4747
if err != nil {
4848
return nil, err

cmd/power-dra-kubeletplugin/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const (
2525

2626
PluginRegistrationPath = "/var/lib/kubelet/plugins/" + DriverName + ".sock"
2727
DriverPluginPath = "/var/lib/kubelet/plugins/" + DriverName
28-
DriverPluginSocketPath = DriverPluginPath + "/plugin.sock"
2928
DriverPluginCheckpointFile = "checkpoint.json"
3029
)
3130

0 commit comments

Comments
 (0)