Skip to content

Commit

Permalink
make owner match when consumer is local-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
mingming.zhou committed Mar 15, 2023
1 parent 48da680 commit 9cd6916
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/local-disk-manager/filter/filter_disk.go
Expand Up @@ -113,7 +113,8 @@ func (ld *LocalDiskFilter) NoPartition() *LocalDiskFilter {
}

func (ld *LocalDiskFilter) OwnerMatch(owner string) *LocalDiskFilter {
if ld.localDisk.Spec.Owner == "" || ld.localDisk.Spec.Owner == owner {
if (ld.localDisk.Spec.Owner == "" && owner == "local-storage") /* Only for local-storage */ ||
ld.localDisk.Spec.Owner == owner {
ld.setResult(TRUE)
} else {
ld.setResult(FALSE)
Expand Down

0 comments on commit 9cd6916

Please sign in to comment.