Skip to content

Commit

Permalink
Updated spilo to spilo-13:2.1-p1
Browse files Browse the repository at this point in the history
This should hopefully allow operators to perform an in-place upgrade
from POSTGRES-12 to POSTGRES-13.

zalando/spilo@bb6ab22
Signed-off-by: Cai Cooper <cagiti@users.noreply.github.com>
  • Loading branch information
cagiti authored and bitsf committed Dec 1, 2022
1 parent ab22239 commit d4399d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifests/cluster/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63761,7 +63761,7 @@ data:
debug_logging: "true"
default_cpu_request: 250m
default_memory_request: 500Mi
docker_image: registry.opensource.zalan.do/acid/spilo-14:2.1-p7
docker_image: registry.opensource.zalan.do/acid/spilo-13:2.1-p1
enable_ebs_gp3_migration: "false"
enable_master_load_balancer: "false"
enable_pgversion_env_var: "true"
Expand Down
4 changes: 2 additions & 2 deletions pkg/image/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ func init() { //nolint:gochecknoinits
RegisterTag("cluster-redis", "5.0-alpine", "~2.2.0", "~2.3.0", "~2.4.0", "~2.5.0", "~2.6.0")

RegisterRepository("cluster-postgresql", "registry.opensource.zalan.do/acid", "*")
RegisterImageName("cluster-postgresql", "spilo-14", "*")
RegisterTag("cluster-postgresql", "2.1-p7", "~2.2.0", "~2.3.0", "~2.4.0", "~2.5.0")
RegisterImageName("cluster-postgresql", "spilo-13", "*")
RegisterTag("cluster-postgresql", "2.1-p1", "~2.2.0", "~2.3.0", "~2.4.0", "~2.5.0")

RegisterRepository("cluster-minio", "minio", "*") // the minio repository of dockerhub
RegisterImageName("cluster-minio", "minio", "*")
Expand Down
4 changes: 2 additions & 2 deletions pkg/image/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ var _ = Describe("Get image", func() {
It("Should pass", func() {
image, err := getImage(ctx, "cluster-postgresql")
Expect(err).ToNot(HaveOccurred())
Expect(image).To(Equal("registry.opensource.zalan.do/acid/spilo-14:2.1-p7"))
Expect(image).To(Equal("registry.opensource.zalan.do/acid/spilo-13:2.1-p1"))
})
})

Describe("Get image for in cluster postgresql with repository", func() {
It("Should pass", func() {
image, err := getImage(ctx, "cluster-postgresql", WithRepository("ghcr.io/goharbor"))
Expect(err).ToNot(HaveOccurred())
Expect(image).To(Equal("ghcr.io/goharbor/spilo-14:2.1-p7"))
Expect(image).To(Equal("ghcr.io/goharbor/spilo-13:2.1-p1"))
})
})
})

0 comments on commit d4399d2

Please sign in to comment.