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) -} diff --git a/src/test/e2e/main_test.go b/src/test/e2e/main_test.go index 6c9c283a55..9670335641 100644 --- a/src/test/e2e/main_test.go +++ b/src/test/e2e/main_test.go @@ -38,6 +38,7 @@ func TestMain(m *testing.M) { e2e.ZarfBinPath = filepath.Join("build", test.GetCLIName()) e2e.ApplianceMode = os.Getenv(applianceModeEnvVar) == "true" e2e.ApplianceModeKeep = os.Getenv(applianceModeKeepEnvVar) == "true" + e2e.RunClusterTests = true message.SetLogLevel(message.TraceLevel)