Skip to content

Commit

Permalink
Advertise VolumeCondition for CO
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Vest committed Dec 14, 2023
1 parent 3a7cc93 commit 89b3744
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/linode-bs/controllerserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ func (linodeCS *LinodeControllerServer) ListVolumes(ctx context.Context, req *cs
},
Status: &csi.ListVolumesResponse_VolumeStatus{
PublishedNodeIds: publishInfoVolumeName,
VolumeCondition: &csi.VolumeCondition{
Abnormal: false,
},
},
})
}
Expand Down
1 change: 1 addition & 0 deletions pkg/linode-bs/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func (linodeDriver *LinodeDriver) SetupLinodeDriver(linodeClient linodeclient.Li
csi.ControllerServiceCapability_RPC_EXPAND_VOLUME,
csi.ControllerServiceCapability_RPC_CLONE_VOLUME,
csi.ControllerServiceCapability_RPC_LIST_VOLUMES,
csi.ControllerServiceCapability_RPC_VOLUME_CONDITION,
}
if err := linodeDriver.AddControllerServiceCapabilities(csc); err != nil {
return err
Expand Down

0 comments on commit 89b3744

Please sign in to comment.