-
Notifications
You must be signed in to change notification settings - Fork 1
SCF-830: Added state management for cluster hibernation #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: scalefield_v18
Are you sure you want to change the base?
Changes from all commits
19ca281
8d75f56
599a263
ea8438f
9424f7c
0f4eabe
8c8147a
18a42b8
8e7018b
356aa78
293ebfc
0af47e5
858b873
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -115,6 +115,7 @@ type PostgresSpec struct { | |
| TLS *TLSDescription `json:"tls,omitempty"` | ||
| AdditionalVolumes []AdditionalVolume `json:"additionalVolumes,omitempty"` | ||
| Streams []Stream `json:"streams,omitempty"` | ||
| Lifecycle *LifecycleSpec `json:"lifecycle,omitempty"` | ||
| Env []v1.EnvVar `json:"env,omitempty"` | ||
|
|
||
| // deprecated | ||
|
|
@@ -257,6 +258,11 @@ type StandbyDescription struct { | |
| StandbyPrimarySlotName string `json:"standby_primary_slot_name,omitempty"` | ||
| } | ||
|
|
||
| // LifecycleSpec describes the lifecycle state of a Postgres cluster. | ||
| type LifecycleSpec struct { | ||
| Phase string `json:"phase,omitempty"` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Since this PR is the one introducing |
||
| } | ||
|
|
||
| // TLSDescription specs TLS properties | ||
| type TLSDescription struct { | ||
| // +required | ||
|
|
@@ -302,7 +308,9 @@ type UserFlags []string | |
|
|
||
| // PostgresStatus contains status of the PostgreSQL cluster (running, creation failed etc.) | ||
| type PostgresStatus struct { | ||
| PostgresClusterStatus string `json:"PostgresClusterStatus"` | ||
| PostgresClusterStatus string `json:"PostgresClusterStatus"` | ||
| PreviousNumberOfInstances int32 `json:"previousNumberOfInstances,omitempty"` | ||
| PreviousPoolerInstances map[string]int32 `json:"previousPoolerInstances,omitempty"` | ||
| } | ||
|
|
||
| // ConnectionPooler Options for connection pooler | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small suggestion, just to be more precise here: this doesn't just trigger on removing the field, setting
phaseto anything other than"stopped"(including"") also wakes the cluster up: