Skip to content

Commit

Permalink
Preparing release 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-arica committed Mar 21, 2024
1 parent 4b231de commit 98ee742
Show file tree
Hide file tree
Showing 25 changed files with 261 additions and 348 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ Among many reasons, there are [5 main ones why we recommend Kubegres](https://ww

If you would like to install Kubegres, please read the page [Getting started](http://www.kubegres.io/doc/getting-started.html).

**Sponsor**

Kubegres is sponsored by [Etikbee](https://www.etikbee.com)
which is using Kubegres in production with over 25 microservices each using a cluster of Postgres.
Etikbee is a UK based marketplace which promotes reuse by allowing merchants
to list their products for rent, for sale and advertise services such as product repair.

**Contribute**

If you would like to contribute to Kubegres, please read the page [How to contribute](http://www.kubegres.io/contribute/).
Expand All @@ -53,11 +60,6 @@ new features requested by organisations paying supports as long the new features
We start working on the implementation of new features within 24h of the request from organisations paying supports.
More details in the [support page](https://www.kubegres.io/support/).

**Sponsor**

If you would like to help this project by sponsoring it, we can display your company's logo on this GitHub page
and on [https://www.kubegres.io](https://www.kubegres.io). More details in the [sponsor page](https://www.kubegres.io/sponsor/).

**Interesting links**
* A webinar about Kubegres was hosted by PostgresConf on 25 May 2021. [Watch the recorded video.](https://postgresconf.org/conferences/2021_Postgres_Conference_Webinars/program/proposals/creating-a-resilient-postgresql-cluster-with-kubegres)
* The availability of Kubegres was published on [PostgreSql's official website](https://www.postgresql.org/about/news/kubegres-is-available-as-open-source-2197/).
Expand Down
5 changes: 5 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

367 changes: 54 additions & 313 deletions config/crd/bases/kubegres.reactive-tech.io_kubegres.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/localresource/custom-namespace/kubegres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:

replicas: 3
image: postgres:16.1
image: postgres:16.2
port: 5432

#imagePullSecrets:
Expand Down
5 changes: 2 additions & 3 deletions config/localresource/default-namespace/kubegres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:

replicas: 3
image: postgres:16.1
image: postgres:16.2
#port: 5432

database:
Expand Down Expand Up @@ -100,8 +100,7 @@ spec:
# sizeLimit: "600Mi"
#
# volumeClaimTemplates:
# - metadata:
# name: anyMount
# - name: anyMount
# spec:
# accessModes: [ "ReadWriteOnce" ]
# storageClassName: standard
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: reactivetechio/kubegres
newTag: "1.17"
newTag: "1.18"
2 changes: 1 addition & 1 deletion internal/test/custom_namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var _ = Describe("Creating Kubegres with a custom namespace", func() {
var test = CustomNamespaceTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := customNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/data_is_replicated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var _ = Describe("Checking changes in Primary DB is replicated in Replica DBs",
var test = DataIsReplicatedTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/postgres_conf_wal_level_logical_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var _ = Describe("We set the wal-level to 'logical' and simulate when Primary in
var test = PostgresConfWalLevelLogicalTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/primary_failure_and_recovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var _ = Describe("Primary instances is not available, checking recovery works",
var test = PrimaryFailureAndRecoveryTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/replica_failure_and_recovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var _ = Describe("Replica instances are not available, checking recovery works",
var test = ReplicaFailureAndRecoveryTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/resourceConfigs/kubegres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:

replicas: 3
image: postgres:16.1
image: postgres:16.2
port: 5432

database:
Expand Down
2 changes: 1 addition & 1 deletion internal/test/spec_affinity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var _ = Describe("Setting Kubegres spec 'scheduler.affinity'", func() {
var test = SpecAffinityTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
2 changes: 2 additions & 0 deletions internal/test/spec_containerSecurityContext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (
var _ = Describe("Setting Kubegres spec 'containerSecurityContext'", func() {
var test = SpeccontainerSecurityContextTest{}
BeforeEach(func() {
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
test.resourceCreator = util2.CreateTestResourceCreator(k8sClientTest, test.resourceRetriever, namespace)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/spec_customConfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var _ = Describe("Setting Kubegres specs 'customConfig'", func() {
var test = SpecCustomConfigTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/spec_databaseStorageClassName_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var _ = Describe("Setting Kubegres specs 'database.storageClassName'", func() {
var test = SpecDatabaseStorageClassTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/spec_failover_is_disabled_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var _ = Describe("Primary instances is not available, when failover is disabled
var test = SpecFailoverIsDisabledTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
18 changes: 9 additions & 9 deletions internal/test/spec_image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var _ = Describe("Setting Kubegres spec 'image'", func() {
var test = SpecImageTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down Expand Up @@ -70,9 +70,9 @@ var _ = Describe("Setting Kubegres spec 'image'", func() {
})
})

Context("GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0' and spec 'replica' set to 3 and later 'image' is updated to 'postgres:16.1'", func() {
Context("GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0' and spec 'replica' set to 3 and later 'image' is updated to 'postgres:16.2'", func() {

It("GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0' and spec 'replica' set to 3 THEN 1 primary and 2 replica should be created with spec 'image' set to 'postgres:16.1'", func() {
It("GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0' and spec 'replica' set to 3 THEN 1 primary and 2 replica should be created with spec 'image' set to 'postgres:16.2'", func() {

log.Print("START OF: Test 'GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0' and spec 'replica' set to 3")

Expand All @@ -92,22 +92,22 @@ var _ = Describe("Setting Kubegres spec 'image'", func() {
log.Print("END OF: Test 'GIVEN new Kubegres is created with spec 'image' set to 'postgres:16.0' and spec 'replica' set to 3'")
})

It("GIVEN existing Kubegres is updated with spec 'image' set from 'postgres:16.0' to 'postgres:16.1' THEN 1 primary and 2 replica should be re-deployed with spec 'image' set to 'postgres:16.1'", func() {
It("GIVEN existing Kubegres is updated with spec 'image' set from 'postgres:16.0' to 'postgres:16.2' THEN 1 primary and 2 replica should be re-deployed with spec 'image' set to 'postgres:16.2'", func() {

log.Print("START OF: Test 'GIVEN existing Kubegres is updated with spec 'image' set from 'postgres:16.0' to 'postgres:16.1'")
log.Print("START OF: Test 'GIVEN existing Kubegres is updated with spec 'image' set from 'postgres:16.0' to 'postgres:16.2'")

test.givenExistingKubegresSpecIsSetTo("postgres:16.1")
test.givenExistingKubegresSpecIsSetTo("postgres:16.2")

test.whenKubernetesIsUpdated()

test.thenPodsStatesShouldBe("postgres:16.1", 1, 2)
test.thenPodsStatesShouldBe("postgres:16.2", 1, 2)

test.thenDeployedKubegresSpecShouldBeSetTo("postgres:16.1")
test.thenDeployedKubegresSpecShouldBeSetTo("postgres:16.2")

test.dbQueryTestCases.ThenWeCanSqlQueryPrimaryDb()
test.dbQueryTestCases.ThenWeCanSqlQueryReplicaDb()

log.Print("END OF: Test 'GIVEN existing Kubegres is updated with spec 'image' set from 'postgres:16.0' to 'postgres:16.1'")
log.Print("END OF: Test 'GIVEN existing Kubegres is updated with spec 'image' set from 'postgres:16.0' to 'postgres:16.2'")
})

})
Expand Down
2 changes: 1 addition & 1 deletion internal/test/spec_livenessProbe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var _ = Describe("Setting Kubegres spec 'livenessProbe'", func() {
var test = SpecLivenessProbeTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/spec_pod_manually_promoted_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var _ = Describe("Primary instances is not available, when the promotion of a Po
var test = SpecFailoverIsDisabledAndPromotePodAreSetTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/spec_port_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var _ = Describe("Setting Kubegres spec 'port'", func() {
var test = SpecPortTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/spec_securityContext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var _ = Describe("Setting Kubegres spec 'securityContext'", func() {
var test = SpecsecurityContextTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
2 changes: 2 additions & 0 deletions internal/test/spec_serviceAccountName_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ var _ = Describe("Setting Kubegres spec 'serviceAccountName'", func() {
var test = SpecServiceAccountNameTest{}

BeforeEach(func() {
//Skip("Temporarily skipping test")

namespace := resourceConfigs.DefaultNamespace
test.resourceRetriever = util.CreateTestResourceRetriever(k8sClientTest, namespace)
test.resourceCreator = util.CreateTestResourceCreator(k8sClientTest, test.resourceRetriever, namespace)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/spec_tolerations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var _ = Describe("Setting Kubegres spec 'scheduler.tolerations'", func() {
var test = SpecTolerationsTest{}

BeforeEach(func() {
Skip("Temporarily skipping test")
//Skip("Temporarily skipping test")

namespace := resourceConfigs2.DefaultNamespace
test.resourceRetriever = util2.CreateTestResourceRetriever(k8sClientTest, namespace)
Expand Down
Loading

0 comments on commit 98ee742

Please sign in to comment.