Create op-credentials secret to use operator with Connect

This commit is contained in:
Volodymyr Zotov
2025-08-20 10:24:16 -05:00
parent 116c8c92a7
commit 91a9bb6d63
2 changed files with 74 additions and 17 deletions

View File

@@ -25,6 +25,9 @@ var _ = Describe("Onepassword Operator e2e", Ordered, func() {
operator.BuildOperatorImage()
kind.LoadImageToKind(operatorImageName)
By("create Connect credentials secret")
kube.CreateOpCredentialsSecret()
By("create onepassword-token secret")
kube.CreateSecretFromEnvVar("OP_CONNECT_TOKEN", "onepassword-token")
@@ -34,9 +37,13 @@ var _ = Describe("Onepassword Operator e2e", Ordered, func() {
operator.DeployOperator()
})
//Context("Use the operator with Connect", func() {
// runCommonTestCases()
//})
Context("Use the operator with Connect", func() {
BeforeAll(func() {
kube.PatchOperatorManageConnect()
})
runCommonTestCases()
})
Context("Use the operator with Service Account", func() {
BeforeAll(func() {