Add e2e tests using Service Accounts

This commit is contained in:
Volodymyr Zotov
2025-08-19 09:51:19 -05:00
parent 7d2596a4aa
commit d504e5ef35
4 changed files with 117 additions and 0 deletions

16
test/kind/kind.go Normal file
View File

@@ -0,0 +1,16 @@
package kind
import (
"github.com/1Password/onepassword-operator/test/cmd"
"os"
)
// LoadImageToKind loads a local docker image to the Kind cluster
func LoadImageToKind(imageName string) error {
clusterName := "kind"
if value, ok := os.LookupEnv("KIND_CLUSTER"); ok {
clusterName = value
}
_, err := cmd.Run("kind", "load", "docker-image", imageName, "--name", clusterName)
return err
}