diff --git a/src/pkg/cluster/namespace.go b/src/pkg/cluster/namespace.go index 997247bfa9..c65c968d0e 100644 --- a/src/pkg/cluster/namespace.go +++ b/src/pkg/cluster/namespace.go @@ -67,6 +67,5 @@ func AdoptZarfManagedLabels(labels map[string]string) map[string]string { labels = make(map[string]string) } labels[ZarfManagedByLabel] = "zarf" - delete(labels, AgentLabel) return labels } diff --git a/src/pkg/cluster/namespace_test.go b/src/pkg/cluster/namespace_test.go deleted file mode 100644 index 1fcc9fe8e9..0000000000 --- a/src/pkg/cluster/namespace_test.go +++ /dev/null @@ -1,25 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2021-Present The Zarf Authors - -package cluster - -import ( - "testing" - - "github.com/stretchr/testify/require" -) - -func TestAdoptZarfManagedLabels(t *testing.T) { - t.Parallel() - - labels := map[string]string{ - "foo": "bar", - AgentLabel: "ignore", - } - adoptedLabels := AdoptZarfManagedLabels(labels) - expectedLabels := map[string]string{ - "foo": "bar", - ZarfManagedByLabel: "zarf", - } - require.Equal(t, expectedLabels, adoptedLabels) -}