Skip to content

Commit

Permalink
crd changes for storage auto-scalling
Browse files Browse the repository at this point in the history
  • Loading branch information
abodhekar committed Nov 14, 2023
1 parent ad9e7f4 commit 8727b51
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
8 changes: 8 additions & 0 deletions api/v1/databaseclaim_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ type DatabaseClaimSpec struct {
// In most cases the AppID will match the database name. In some cases, however, we will need to provide an optional override.
DBNameOverride string `json:"dbNameOverride,omitempty"`

// If provided, marks auto storage scalling to true for postgres DBinstance. The value represents the maximum allowed storage to scale upto.
// For auroraDB instance, this value is ignored.
MaxStorageGB int64 `json:"maxStorageGB,omitempty"`

// The name of the secret to use for storing the ConnectionInfo. Must follow a naming convention that ensures it is unique.
SecretName string `json:"secretName,omitempty"`

Expand Down Expand Up @@ -266,6 +270,10 @@ type Status struct {
// The optional MinStorageGB value requests the minimum database host storage capacity in GBytes
MinStorageGB int `json:"minStorageGB,omitempty"`

// If provided, marks auto storage scalling to true for postgres DBinstance. The value represents the maximum allowed storage to scale upto.
// For auroraDB instance, this value is ignored.
MaxStorageGB int64 `json:"maxStorageGB,omitempty"`

// Specifies the type of database to provision. Only postgres is supported.
Type DatabaseType `json:"type,omitempty"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ spec:
description: The matching fragment key name of the database instance
that will host the database.
type: string
maxStorageGB:
description: If provided, marks auto storage scalling to true for
postgres DBinstance. The value represents the maximum allowed storage
to scale upto. For auroraDB instance, this value is ignored.
format: int64
type: integer
minStorageGB:
description: The optional MinStorageGB value requests the minimum
database host storage capacity in GBytes
Expand Down Expand Up @@ -272,6 +278,13 @@ spec:
description: The name of the label that was successfully matched
against the fragment key names in the db-controller configMap
type: string
maxStorageGB:
description: If provided, marks auto storage scalling to true
for postgres DBinstance. The value represents the maximum allowed
storage to scale upto. For auroraDB instance, this value is
ignored.
format: int64
type: integer
minStorageGB:
description: The optional MinStorageGB value requests the minimum
database host storage capacity in GBytes
Expand Down Expand Up @@ -409,6 +422,13 @@ spec:
description: The name of the label that was successfully matched
against the fragment key names in the db-controller configMap
type: string
maxStorageGB:
description: If provided, marks auto storage scalling to true
for postgres DBinstance. The value represents the maximum allowed
storage to scale upto. For auroraDB instance, this value is
ignored.
format: int64
type: integer
minStorageGB:
description: The optional MinStorageGB value requests the minimum
database host storage capacity in GBytes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ spec:
description: The matching fragment key name of the database instance
that will host the database.
type: string
maxStorageGB:
description: If provided, marks auto storage scalling to true for
postgres DBinstance. The value represents the maximum allowed storage
to scale upto. For auroraDB instance, this value is ignored.
format: int64
type: integer
minStorageGB:
description: The optional MinStorageGB value requests the minimum
database host storage capacity in GBytes
Expand Down Expand Up @@ -272,6 +278,13 @@ spec:
description: The name of the label that was successfully matched
against the fragment key names in the db-controller configMap
type: string
maxStorageGB:
description: If provided, marks auto storage scalling to true
for postgres DBinstance. The value represents the maximum allowed
storage to scale upto. For auroraDB instance, this value is
ignored.
format: int64
type: integer
minStorageGB:
description: The optional MinStorageGB value requests the minimum
database host storage capacity in GBytes
Expand Down Expand Up @@ -409,6 +422,13 @@ spec:
description: The name of the label that was successfully matched
against the fragment key names in the db-controller configMap
type: string
maxStorageGB:
description: If provided, marks auto storage scalling to true
for postgres DBinstance. The value represents the maximum allowed
storage to scale upto. For auroraDB instance, this value is
ignored.
format: int64
type: integer
minStorageGB:
description: The optional MinStorageGB value requests the minimum
database host storage capacity in GBytes
Expand Down Expand Up @@ -550,4 +570,4 @@ spec:
served: true
storage: true
subresources:
status: {}
status: {}

0 comments on commit 8727b51

Please sign in to comment.