From 4a28b3b16fb6d58f499bf1ec59d476604fb267c8 Mon Sep 17 00:00:00 2001 From: Anshul Ahuja Date: Thu, 13 Jul 2023 09:44:03 +0530 Subject: [PATCH] start end operator in test Signed-off-by: Anshul Ahuja --- internal/resourcemodifiers/resource_modifiers_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/resourcemodifiers/resource_modifiers_test.go b/internal/resourcemodifiers/resource_modifiers_test.go index 2a1082abd..40198f73a 100644 --- a/internal/resourcemodifiers/resource_modifiers_test.go +++ b/internal/resourcemodifiers/resource_modifiers_test.go @@ -185,7 +185,7 @@ func TestResourceModifiers_ApplyResourceModifierRules(t *testing.T) { { Conditions: Conditions{ GroupKind: "deployments.apps", - ResourceNameRegex: "test-.*", + ResourceNameRegex: "^test-.*$", Namespaces: []string{"foo"}, }, Patches: []JSONPatch{