Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc committed Jan 11, 2023
1 parent 0493b19 commit 7b0c25b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/manager/volumes/delegation/interface.go
Expand Up @@ -23,7 +23,8 @@ import (

type VolumeModifier interface {
MinWaitDuration() time.Duration
// ModifyVolume modifies the underlay volume of pvc to match the args of storageclass
// ModifyVolume modifies the underlay volume of pvc to match the args of storageclass.
// If no PV permission (e.g `-cluster-permission-pv=false`), the `pv` may be nil and will return `false, nil`.
ModifyVolume(ctx context.Context, pvc *corev1.PersistentVolumeClaim, pv *corev1.PersistentVolume, sc *storagev1.StorageClass) (bool, error)

Validate(spvc, dpvc *corev1.PersistentVolumeClaim, ssc, dsc *storagev1.StorageClass) error
Expand Down

0 comments on commit 7b0c25b

Please sign in to comment.