Skip to content

Commit

Permalink
Remove arm64 affinity restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
adejanovski committed Oct 24, 2023
1 parent 9c9bc7e commit 2e6b802
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions pkg/kotsadm/objects/affinity_objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ func defaultKOTSNodeAffinity() *corev1.NodeAffinity {
"linux",
},
},
{
Key: "kubernetes.io/arch",
Operator: corev1.NodeSelectorOpNotIn,
Values: []string{
"arm64",
},
},
},
},
},
Expand All @@ -40,13 +33,8 @@ func DefaultKOTSNodeLabelSelector() (labels.Selector, error) {
return nil, errors.Wrap(err, "failed to create os requirement")
}

archReq, err := labels.NewRequirement("kubernetes.io/arch", selection.NotIn, []string{"arm64"})
if err != nil {
return nil, errors.Wrap(err, "failed to create arch requirement")
}

selector := labels.NewSelector()
selector = selector.Add(*osReq, *archReq)
selector = selector.Add(*osReq)

return selector, nil
}

0 comments on commit 2e6b802

Please sign in to comment.