Skip to content

Commit

Permalink
restore from s3 is not implemented, remove types (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewwells authored Jul 23, 2024
1 parent e8f111f commit 748188a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 130 deletions.
9 changes: 0 additions & 9 deletions api/v1/databaseclaim_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ const (

type SourceDataType string

const (
DatabaseSource SourceDataType = "database"
S3Source SourceDataType = "s3"
)

type DeletionPolicy string

const (
Expand All @@ -69,10 +64,6 @@ type SourceDataFrom struct {
// Database defines the connection information to an existing db
// +optional
Database *Database `json:"database,omitempty"`

// S3 defines the location of a DB backup in an S3 bucket
// +optional
S3 *S3BackupConfiguration `json:"s3,omitempty"`
}

// S3BackupConfiguration defines the details of the S3 backup to restore from.
Expand Down
5 changes: 0 additions & 5 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

116 changes: 0 additions & 116 deletions config/crd/bases/persistance.atlas.infoblox.com_databaseclaims.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,44 +202,6 @@ spec:
required:
- dsn
type: object
s3:
description: S3 defines the location of a DB backup in an S3 bucket
properties:
bucket:
type: string
prefix:
description: Prefix is the path prefix of the S3 bucket within
which the backup to restore is located.
type: string
region:
type: string
secretRef:
description: |-
SecretRef specifies a secret to use for connecting to the s3 bucket via AWS client
TODO: document/validate the secret format required
properties:
name:
type: string
namespace:
type: string
required:
- name
type: object
sourceEngine:
description: SourceEngine is the engine used to create the
backup.
type: string
sourceEngineVersion:
description: |-
SourceEngineVersion is the version of the engine used to create the backup.
Example: "5.7.30"
type: string
required:
- bucket
- region
- sourceEngine
- sourceEngineVersion
type: object
type:
description: Type specifies the type of source
type: string
Expand Down Expand Up @@ -368,45 +330,6 @@ spec:
required:
- dsn
type: object
s3:
description: S3 defines the location of a DB backup in an
S3 bucket
properties:
bucket:
type: string
prefix:
description: Prefix is the path prefix of the S3 bucket
within which the backup to restore is located.
type: string
region:
type: string
secretRef:
description: |-
SecretRef specifies a secret to use for connecting to the s3 bucket via AWS client
TODO: document/validate the secret format required
properties:
name:
type: string
namespace:
type: string
required:
- name
type: object
sourceEngine:
description: SourceEngine is the engine used to create
the backup.
type: string
sourceEngineVersion:
description: |-
SourceEngineVersion is the version of the engine used to create the backup.
Example: "5.7.30"
type: string
required:
- bucket
- region
- sourceEngine
- sourceEngineVersion
type: object
type:
description: Type specifies the type of source
type: string
Expand Down Expand Up @@ -511,45 +434,6 @@ spec:
required:
- dsn
type: object
s3:
description: S3 defines the location of a DB backup in an
S3 bucket
properties:
bucket:
type: string
prefix:
description: Prefix is the path prefix of the S3 bucket
within which the backup to restore is located.
type: string
region:
type: string
secretRef:
description: |-
SecretRef specifies a secret to use for connecting to the s3 bucket via AWS client
TODO: document/validate the secret format required
properties:
name:
type: string
namespace:
type: string
required:
- name
type: object
sourceEngine:
description: SourceEngine is the engine used to create
the backup.
type: string
sourceEngineVersion:
description: |-
SourceEngineVersion is the version of the engine used to create the backup.
Example: "5.7.30"
type: string
required:
- bucket
- region
- sourceEngine
- sourceEngineVersion
type: object
type:
description: Type specifies the type of source
type: string
Expand Down

0 comments on commit 748188a

Please sign in to comment.