Skip to content

Commit ad7aaec

Browse files
committed
sync logic rewrite + tests and constants
1 parent ecf4af6 commit ad7aaec

File tree

10 files changed

+1094
-217
lines changed

10 files changed

+1094
-217
lines changed

api/v4/postgrescluster_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ type ManagedRole struct {
3636

3737
// Exists controls whether the role should be present (true) or absent (false) in PostgreSQL.
3838
// +kubebuilder:default=true
39-
// +optional
40-
Exists bool `json:"exists,omitempty"`
39+
Exists bool `json:"exists"`
4140
}
4241

4342
// PostgresClusterSpec defines the desired state of PostgresCluster.

internal/controller/postgrescluster_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import (
5151
* PC-09 ignores no-op updates
5252
*/
5353

54-
var _ = Describe("PostgresCluster Controller", func() {
54+
var _ = Describe("PostgresCluster Controller", Label("postgres"), func() {
5555

5656
const (
5757
postgresVersion = "15.10"

internal/controller/postgresdatabase_controller_test.go

Lines changed: 170 additions & 55 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)