Skip to content

Commit

Permalink
Update internal/resourcepolicies/volume_resources_validator.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tiger Kaovilai <[email protected]>
Signed-off-by: Mayank Aggarwal <[email protected]>
  • Loading branch information
mayankagg9722 and kaovilai authored Nov 21, 2024
1 parent 0de43a3 commit 4b1e0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resourcepolicies/volume_resources_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (c *nfsCondition) validate() error {

func (c *csiCondition) validate() error {
if c != nil && c.csi != nil && c.csi.Driver == "" && c.csi.VolumeAttributes != nil {
return errors.New("csi driver should not be empty")
return errors.New("csi driver should not be empty when filtering by volume attributes")
}

return nil
Expand Down

0 comments on commit 4b1e0b8

Please sign in to comment.