Skip to content

Commit

Permalink
Merge branch 'master' into arbiter
Browse files Browse the repository at this point in the history
  • Loading branch information
Neaj-Morshad-101 authored Dec 11, 2024
2 parents 0427a35 + 5c754b0 commit c159b01
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion apis/kubedb/v1/postgres_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ func (p *Postgres) SetDefaults(postgresVersion *catalog.PostgresVersion) {
if p == nil {
return
}

if p.Spec.StandbyMode == nil {
p.Spec.StandbyMode = ptr.To(HotPostgresStandbyMode)
}
if p.Spec.StorageType == "" {
p.Spec.StorageType = StorageTypeDurable
}
Expand Down
3 changes: 3 additions & 0 deletions apis/kubedb/v1alpha2/postgres_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ func (p *Postgres) SetDefaults(postgresVersion *catalog.PostgresVersion, topolog
if p == nil {
return
}
if p.Spec.StandbyMode == nil {
p.Spec.StandbyMode = ptr.To(HotPostgresStandbyMode)
}

if p.Spec.StorageType == "" {
p.Spec.StorageType = StorageTypeDurable
Expand Down
7 changes: 4 additions & 3 deletions apis/ops/v1alpha1/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ const (

// Elasticsearch Constant
const (
PrepareCustomConfig = "PrepareCustomConfig"
PrepareSecureCustomConfig = "PrepareSecureCustomConfig"
ReconfigureSecurityAdmin = "ReconfigureSecurityAdmin"
PrepareCustomConfig = "PrepareCustomConfig"
PrepareSecureCustomConfig = "PrepareSecureCustomConfig"
ReconfigureSecurityAdmin = "ReconfigureSecurityAdmin"
DisabledMasterNodeShardAllocation = "DisabledMasterNodeShardAllocation"

HorizontalScaleMasterNode = "HorizontalScaleMasterNode"
HorizontalScaleDataNode = "HorizontalScaleDataNode"
Expand Down

0 comments on commit c159b01

Please sign in to comment.