Provide default inerval and timeout via config

This commit is contained in:
Volodymyr Zotov
2025-08-26 16:31:07 -05:00
parent 24edff22d4
commit 0c3caf88b6
5 changed files with 22 additions and 17 deletions

View File

@@ -12,13 +12,11 @@ import (
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
"github.com/1Password/onepassword-operator/pkg/testhelper/defaults"
)
type Deployment struct {
client client.Client
config *ClusterConfig
config *Config
name string
}
@@ -128,5 +126,5 @@ func (d *Deployment) WaitDeploymentRolledOut(ctx context.Context) {
g.Expect(newDeployment.Status.Replicas).To(Equal(desired))
return nil
}, defaults.E2ETimeout, defaults.E2EInterval).Should(Succeed())
}, d.config.TestConfig.Timeout, d.config.TestConfig.Interval).Should(Succeed())
}