Merge pull request #121650 from soltysh/fix_ginkgo_setup

Move invocation to not to cause ginkgo panic
This commit is contained in:
Kubernetes Prow Robot 2023-11-01 00:33:32 +01:00 committed by GitHub
commit e0d6b7eaaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,7 @@ import (
var _ = SIGDescribe("Kubectl rollout", func() {
defer ginkgo.GinkgoRecover()
var deploymentYaml string
f := framework.NewDefaultFramework("kubectl-rollout")
f.NamespacePodSecurityLevel = admissionapi.LevelBaseline
@ -47,10 +48,10 @@ var _ = SIGDescribe("Kubectl rollout", func() {
ginkgo.BeforeEach(func() {
c = f.ClientSet
ns = f.Namespace.Name
deploymentYaml = commonutils.SubstituteImageName(string(readTestFileOrDie(httpdDeployment1Filename)))
})
ginkgo.Describe("undo", func() {
deploymentYaml := commonutils.SubstituteImageName(string(readTestFileOrDie(httpdDeployment1Filename)))
ginkgo.AfterEach(func() {
cleanupKubectlInputs(deploymentYaml, ns, "app=httpd")
})