Skip to content

Commit

Permalink
fulfill snapshot spec in localstorage spec
Browse files Browse the repository at this point in the history
Signed-off-by: buffalo1024 <[email protected]>
  • Loading branch information
buffalo1024 authored and buffalo1024 committed Nov 13, 2023
1 parent 7c588f9 commit b37af4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/install/lscsicontroller/localstorage_csi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,9 @@ func FulfillLSCSISpec (clusterInstance *hwameistoriov1alpha1.Cluster) *hwameisto
if clusterInstance.Spec.LocalStorage.CSI.Controller.Resizer.Image.Tag == "" {
clusterInstance.Spec.LocalStorage.CSI.Controller.Resizer.Image.Tag = defaultLSCSIResizerTag
}
if clusterInstance.Spec.LocalStorage.Snapshot == nil {
clusterInstance.Spec.LocalStorage.Snapshot = &hwameistoriov1alpha1.SnapshotSpec{}
}

return clusterInstance
}

0 comments on commit b37af4f

Please sign in to comment.