Move BuildOperatorImage function to testhelper.operator package

This commit is contained in:
Volodymyr Zotov
2025-08-19 14:50:39 -05:00
parent 174f952691
commit 19b629f2ee
3 changed files with 17 additions and 12 deletions

View File

@@ -10,6 +10,12 @@ import (
"github.com/1Password/onepassword-operator/test/testhelper/kube"
)
func BuildOperatorImage() {
By("building the operator image")
_, err := cmd.Run("make", "docker-build")
ExpectWithOffset(1, err).NotTo(HaveOccurred())
}
// DeployOperator deploys the Onepassword Operator in the default namespace.
// It waits for the operator pod to be in 'Running' state.
// All the resources created using manifests in `config/` dir.