mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-03 11:49:48 +02:00
* add unit test and documentation for finalizers * error msg with lower case and cover sync case * try to avoid adding json-patch dependency * use Update to remove finalizer * changing status and finalizer during create * do not call Delete() twice
20 lines
582 B
Go
20 lines
582 B
Go
package v1
|
|
|
|
// ClusterStatusUnknown etc : status of a Postgres cluster known to the operator
|
|
const (
|
|
ClusterStatusUnknown = ""
|
|
ClusterStatusCreating = "Creating"
|
|
ClusterStatusUpdating = "Updating"
|
|
ClusterStatusUpdateFailed = "UpdateFailed"
|
|
ClusterStatusSyncFailed = "SyncFailed"
|
|
ClusterStatusAddFailed = "CreateFailed"
|
|
ClusterStatusRunning = "Running"
|
|
ClusterStatusInvalid = "Invalid"
|
|
)
|
|
|
|
const (
|
|
serviceNameMaxLength = 63
|
|
clusterNameMaxLength = serviceNameMaxLength - len("-repl")
|
|
serviceNameRegexString = `^[a-z]([-a-z0-9]*[a-z0-9])?$`
|
|
)
|