fix: onDelete configuration is invalid and no value is assigned to the driver

This commit is contained in:
Andy Zhang 2025-02-08 12:07:43 +08:00 committed by zzzyuan
commit 4a4605cda6
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,7 @@ jobs:
- name: Install go - name: Install go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: 1.23.5 go-version: 1.23.6
- name: Build an image from Dockerfile - name: Build an image from Dockerfile
run: | run: |

View File

@ -99,6 +99,7 @@ func NewDriver(options *DriverOptions) *Driver {
volStatsCacheExpireInMinutes: options.VolStatsCacheExpireInMinutes, volStatsCacheExpireInMinutes: options.VolStatsCacheExpireInMinutes,
removeArchivedVolumePath: options.RemoveArchivedVolumePath, removeArchivedVolumePath: options.RemoveArchivedVolumePath,
useTarCommandInSnapshot: options.UseTarCommandInSnapshot, useTarCommandInSnapshot: options.UseTarCommandInSnapshot,
defaultOnDeletePolicy: options.DefaultOnDeletePolicy,
} }
n.AddControllerServiceCapabilities([]csi.ControllerServiceCapability_RPC_Type{ n.AddControllerServiceCapabilities([]csi.ControllerServiceCapability_RPC_Type{