Skip to content

Commit

Permalink
Merge pull request #100 from Madhu-1/fix-53
Browse files Browse the repository at this point in the history
impore logging for invalid driver name
  • Loading branch information
nb-ohad authored Aug 6, 2024
2 parents 526b2d3 + c75f6a3 commit b3e415e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/driver_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (r *driverReconcile) LoadAndValidateDesiredState() error {
// we assume there is another driver CR with an identical name on some other namespace
if r.driver.Namespace != ownerObjKey.Namespace || r.driver.Name != ownerObjKey.Name {
err := fmt.Errorf("invalid driver name")
r.log.Error(err, "Desired name already in use by a different CSI Driver")
r.log.Error(err, "Desired name already in use by a different CSI Driver", "current owner", ownerObjKey)
return err
}
}
Expand Down

0 comments on commit b3e415e

Please sign in to comment.