Move cmd package to testhelper and rename to be system

This commit is contained in:
Volodymyr Zotov
2025-08-20 14:27:12 -05:00
parent 88b2dfbf67
commit 600adf2670
5 changed files with 19 additions and 19 deletions

View File

@@ -6,7 +6,7 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/1Password/onepassword-operator/test/cmd"
"github.com/1Password/onepassword-operator/test/testhelper/system"
)
// LoadImageToKind loads a local docker image to the Kind cluster
@@ -16,6 +16,6 @@ func LoadImageToKind(imageName string) {
if value, ok := os.LookupEnv("KIND_CLUSTER"); ok {
clusterName = value
}
_, err := cmd.Run("kind", "load", "docker-image", imageName, "--name", clusterName)
_, err := system.Run("kind", "load", "docker-image", imageName, "--name", clusterName)
Expect(err).NotTo(HaveOccurred())
}