Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion api/v1alpha1/cloudstorage_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ type CloudStorageSpec struct {
// region for the bucket to be in, will be us-east-1 if not set.
Region string `json:"region,omitempty"`
// provider is the provider of the cloud storage
// +kubebuilder:validation:Enum=aws
// +kubebuilder:validation:Enum=aws;azure;gcp
Provider CloudStorageProvider `json:"provider"`
// config is provider-specific configuration options
// +kubebuilder:validation:Optional
Config map[string]string `json:"config,omitempty"`

// https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/[email protected]#section-readme
// azure blob primary endpoint
Expand Down
7 changes: 7 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

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

7 changes: 7 additions & 0 deletions bundle/manifests/oadp.openshift.io_cloudstorages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ spec:
type: object
spec:
properties:
config:
additionalProperties:
type: string
description: config is provider-specific configuration options
type: object
creationSecret:
description: creationSecret is the secret that is needed to be used
while creating the bucket.
Expand Down Expand Up @@ -75,6 +80,8 @@ spec:
description: provider is the provider of the cloud storage
enum:
- aws
- azure
- gcp
type: string
region:
description: region for the bucket to be in, will be us-east-1 if
Expand Down
7 changes: 7 additions & 0 deletions config/crd/bases/oadp.openshift.io_cloudstorages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ spec:
type: object
spec:
properties:
config:
additionalProperties:
type: string
description: config is provider-specific configuration options
type: object
creationSecret:
description: creationSecret is the secret that is needed to be used
while creating the bucket.
Expand Down Expand Up @@ -75,6 +80,8 @@ spec:
description: provider is the provider of the cloud storage
enum:
- aws
- azure
- gcp
type: string
region:
description: region for the bucket to be in, will be us-east-1 if
Expand Down
Loading