Skip to content

Commit

Permalink
Update images/virtualization-artifact/pkg/controller/vmclass/internal…
Browse files Browse the repository at this point in the history
…/state/state.go

Co-authored-by: Ivan Mikheykin <[email protected]>
Signed-off-by: Yaroslav Borbat <[email protected]>
  • Loading branch information
yaroslavborbat and diafour committed Oct 30, 2024
1 parent 7f12607 commit 2f705b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (s *state) Nodes(ctx context.Context) ([]corev1.Node, error) {

switch curr.Spec.CPU.Type {
case virtv2.CPUTypeHost, virtv2.CPUTypeHostPassthrough:
// each node
// Node is always has the "Host" CPU type, no additional filters required.
case virtv2.CPUTypeDiscovery:
matchLabels = curr.Spec.CPU.Discovery.NodeSelector.MatchLabels
filters = append(filters, func(node *corev1.Node) bool {
Expand Down

0 comments on commit 2f705b1

Please sign in to comment.