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

Commit

Permalink
Merge pull request #116 from cloudfoundry-incubator/remove-operator-p…
Browse files Browse the repository at this point in the history
…refix

RestartOperator doesn't use namespaced name
  • Loading branch information
Mario Manno authored Mar 2, 2021
2 parents f17676b + 43b09d4 commit f972a39
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 f972a39

Please sign in to comment.