From ec50c4bea6d7f3621ca913c56677df1037892fd9 Mon Sep 17 00:00:00 2001 From: Alexander Dejanovski Date: Mon, 3 Jul 2023 14:14:18 +0200 Subject: [PATCH] Remove arm64 affinity restriction --- pkg/kotsadm/objects/affinity_objects.go | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/pkg/kotsadm/objects/affinity_objects.go b/pkg/kotsadm/objects/affinity_objects.go index 7ebb6afadb..e8db6c55fc 100644 --- a/pkg/kotsadm/objects/affinity_objects.go +++ b/pkg/kotsadm/objects/affinity_objects.go @@ -20,13 +20,6 @@ func defaultKOTSNodeAffinity() *corev1.NodeAffinity { "linux", }, }, - { - Key: "kubernetes.io/arch", - Operator: corev1.NodeSelectorOpNotIn, - Values: []string{ - "arm64", - }, - }, }, }, }, @@ -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 }