Skip to content

Commit

Permalink
remoteSpec to define region and zone
Browse files Browse the repository at this point in the history
  • Loading branch information
kobzonega committed Jan 23, 2024
1 parent acd863b commit 7b90585
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
10 changes: 10 additions & 0 deletions api/v1alpha1/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,13 @@ type PodImage struct {
// +optional
PullSecret *string `json:"pullSecret,omitempty"`
}

type RemoteSpec struct {
// (Optional) Remote cloud region to deploy into
// +optional
Region string `json:"region,omitempty"`

// Remote cloud zone to deploy into
// +required
Zone string `json:"zone"`
}
2 changes: 1 addition & 1 deletion api/v1alpha1/databasenodeset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type DatabaseNodeSetSpecInline struct {

// (Optional) Object should be reference to remote object
// +optional
Remote bool `json:"remote,omitempty"`
Remote *RemoteSpec `json:"remote,omitempty"`

DatabaseNodeSpec `json:",inline"`
}
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/storagenodeset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type StorageNodeSetSpecInline struct {

// (Optional) Object should be reference to remote object
// +optional
Remote bool `json:"remote,omitempty"`
Remote *RemoteSpec `json:"remote,omitempty"`

StorageNodeSpec `json:",inline"`
}
Expand Down
25 changes: 25 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.

0 comments on commit 7b90585

Please sign in to comment.