From 43b09d4a191fee96e177941ef7c5ef3559cdeb36 Mon Sep 17 00:00:00 2001 From: Mario Manno Date: Tue, 2 Mar 2021 17:31:03 +0100 Subject: [PATCH] RestartOperator doesn't use namespaced name Prefixes were removed in quarks-operator --- testing/command_helper.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testing/command_helper.go b/testing/command_helper.go index fd90e8d..5b2c46c 100644 --- a/testing/command_helper.go +++ b/testing/command_helper.go @@ -470,8 +470,7 @@ func SecretCheckData(namespace string, secretName string, fieldPath string) erro // RestartOperator restart Operator Deployment func RestartOperator(namespace string) error { - deploymentName := fmt.Sprintf("deployment/%s-%s", QuarksHelmRelease, namespace) - fmt.Println("Restarting '" + deploymentName + "'...") + deploymentName := fmt.Sprintf("deployment/%s", QuarksHelmRelease) _, err := runBinary(kubeCtlCmd, "patch", deploymentName, "--namespace", namespace, "--patch", "{\"spec\":{\"template\":{\"metadata\":{\"annotations\":{\"dummy-date\":\"`date +'%s'`\"}}}}}")