Skip to content

Commit

Permalink
Merge pull request #1892 from Nordix/mquhuy/kustomize-apply-not-depen…
Browse files Browse the repository at this point in the history
…dent-on-ginkgo

🌱 Make kustomize apply function not dependent on ginkgo
  • Loading branch information
metal3-io-bot authored Aug 15, 2024
2 parents b14f410 + 3b3eb5b commit 49e40eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,10 @@ func (input *BuildAndApplyKustomizationInput) validate() error {
// BuildAndApplyKustomization takes input from BuildAndApplyKustomizationInput. It builds the provided kustomization
// and apply it to the cluster provided by clusterProxy.
func BuildAndApplyKustomization(ctx context.Context, input *BuildAndApplyKustomizationInput) error {
Expect(input.validate()).To(Succeed())
var err error
if err = input.validate(); err != nil {
return err
}
kustomization := input.Kustomization
clusterProxy := input.ClusterProxy
manifest, err := BuildKustomizeManifest(kustomization)
Expand Down

0 comments on commit 49e40eb

Please sign in to comment.