Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
RestartOperator doesn't use namespaced name
Browse files Browse the repository at this point in the history
Prefixes were removed in quarks-operator
  • Loading branch information
Mario Manno committed Mar 2, 2021
1 parent f17676b commit 43b09d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions testing/command_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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'`\"}}}}}")
Expand Down

0 comments on commit 43b09d4

Please sign in to comment.