Skip to content

Commit 49e40eb

Browse files
Merge pull request #1892 from Nordix/mquhuy/kustomize-apply-not-dependent-on-ginkgo
🌱 Make kustomize apply function not dependent on ginkgo
2 parents b14f410 + 3b3eb5b commit 49e40eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/e2e/common.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,10 @@ func (input *BuildAndApplyKustomizationInput) validate() error {
328328
// BuildAndApplyKustomization takes input from BuildAndApplyKustomizationInput. It builds the provided kustomization
329329
// and apply it to the cluster provided by clusterProxy.
330330
func BuildAndApplyKustomization(ctx context.Context, input *BuildAndApplyKustomizationInput) error {
331-
Expect(input.validate()).To(Succeed())
332331
var err error
332+
if err = input.validate(); err != nil {
333+
return err
334+
}
333335
kustomization := input.Kustomization
334336
clusterProxy := input.ClusterProxy
335337
manifest, err := BuildKustomizeManifest(kustomization)

0 commit comments

Comments
 (0)