Make testhelper as a standalone module to install as dependency into kubernetes-secrets-injector

This commit is contained in:
Volodymyr Zotov
2025-09-17 10:45:50 -05:00
parent 0f56cab693
commit a390354100
6 changed files with 184 additions and 7 deletions

View File

@@ -27,7 +27,6 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/client/apiutil"
apiv1 "github.com/1Password/onepassword-operator/api/v1"
"github.com/1Password/onepassword-operator/pkg/testhelper/defaults"
)
@@ -73,7 +72,6 @@ func NewKubeClient(config *Config) *Kube {
scheme := runtime.NewScheme()
utilruntime.Must(corev1.AddToScheme(scheme))
utilruntime.Must(appsv1.AddToScheme(scheme))
utilruntime.Must(apiv1.AddToScheme(scheme)) // add OnePasswordItem to scheme
kubernetesClient, err := client.New(restConfig, client.Options{
Scheme: scheme,