Skip to content

Commit

Permalink
chore: specify namespace when restarting deployments in remote e2e te…
Browse files Browse the repository at this point in the history
…sts (argoproj#16192)

Signed-off-by: Chris Fry <christopherfry@google.com>
Signed-off-by: jmilic1 <70441727+jmilic1@users.noreply.github.com>
  • Loading branch information
ChristopherFry authored and jmilic1 committed Nov 13, 2023
1 parent db33c0c commit f7fd195
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/fixture/fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -938,8 +938,8 @@ func RestartRepoServer() {
if prefix != "" {
workload = prefix + "-repo-server"
}
FailOnErr(Run("", "kubectl", "rollout", "restart", "deployment", workload))
FailOnErr(Run("", "kubectl", "rollout", "status", "deployment", workload))
FailOnErr(Run("", "kubectl", "rollout", "-n", TestNamespace(), "restart", "deployment", workload))
FailOnErr(Run("", "kubectl", "rollout", "-n", TestNamespace(), "status", "deployment", workload))
// wait longer to avoid error on s390x
time.Sleep(10 * time.Second)
}
Expand All @@ -955,8 +955,8 @@ func RestartAPIServer() {
if prefix != "" {
workload = prefix + "-server"
}
FailOnErr(Run("", "kubectl", "rollout", "restart", "deployment", workload))
FailOnErr(Run("", "kubectl", "rollout", "status", "deployment", workload))
FailOnErr(Run("", "kubectl", "rollout", "-n", TestNamespace(), "restart", "deployment", workload))
FailOnErr(Run("", "kubectl", "rollout", "-n", TestNamespace(), "status", "deployment", workload))
}
}

Expand Down

0 comments on commit f7fd195

Please sign in to comment.