Skip to content

Commit

Permalink
fix operator upgrade test
Browse files Browse the repository at this point in the history
  • Loading branch information
nammn committed Nov 6, 2023
1 parent 5f08b4e commit ac39871
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ARG imagebase
FROM ${imagebase} AS builder

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

COPY --from=builder /version-upgrade-hook /version-upgrade-hook
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ func TestReplicaSetOperatorUpgrade(t *testing.T) {
defer ctx.Teardown()

mdb, user := e2eutil.NewTestMongoDB(ctx, resourceName, testConfig.Namespace)
// Prior operator versions did not support MDB7
mdb.Spec.Version = "6.0.5"
scramUser := mdb.GetAuthUsers()[0]
mdb.Spec.Security.TLS = e2eutil.NewTestTLSConfig(false)
mdb.Spec.Arbiters = 1
Expand Down

0 comments on commit ac39871

Please sign in to comment.