Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: yaroslavborbat <[email protected]>
  • Loading branch information
yaroslavborbat committed Dec 23, 2024
1 parent cc8b438 commit 69421fa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func (b *KVVM) SetRunPolicy(runPolicy virtv2.RunPolicy) error {

func (b *KVVM) SetNodeSelector(vmNodeSelector, classNodeSelector map[string]string) {
if len(vmNodeSelector) == 0 && len(classNodeSelector) == 0 {
b.Resource.Spec.Template.Spec.NodeSelector = nil
return
}
selector := make(map[string]string, len(vmNodeSelector)+len(classNodeSelector))
Expand Down

0 comments on commit 69421fa

Please sign in to comment.