-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unified Distributed Storage API implementation #403
Unified Distributed Storage API implementation #403
Conversation
✅ Deploy Preview for kurator-dev canceled.
|
pkg/apis/fleet/v1alpha1/types.go
Outdated
// e.g. /var/lib/rook | ||
// +kubebuilder:validation:Pattern=`^/(\S+)` | ||
// +optional | ||
DataDirHostPath string `json:"dataDirHostPath,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it is optional, it should be a pointer type or it hava a built-in nil value(maps or slices).
pkg/apis/fleet/v1alpha1/types.go
Outdated
// A spec for mon related options | ||
// +optional | ||
// +nullable | ||
Monitor MonSpec `json:"monitor,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
pkg/apis/fleet/v1alpha1/types.go
Outdated
// A spec for mgr related options | ||
// +optional | ||
// +nullable | ||
Manager MgrSpec `json:"manager,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same, check for other properties definition
pkg/apis/fleet/v1alpha1/types.go
Outdated
} | ||
|
||
type DistributedStorage struct { | ||
// The path on the host where config and data can be persisted. Must be set. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the must be set
pkg/apis/fleet/v1alpha1/types.go
Outdated
type StorageDeviceSelection struct { | ||
// Whether to consume all the storage devices found on a machine | ||
// indicating whether all devices found on nodes in the cluster should be automatically consumed by OSDs. | ||
//Not recommended unless you have a very controlled environment where you will not risk formatting of devices with existing data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
white space
…age updates Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
…age updates. Furthermore modified distributed proposal based on actual API implementation. Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
your force push overwrite the origin commit, so reviewers can not get the delta change |
pkg/apis/fleet/v1alpha1/types.go
Outdated
|
||
// The placement-related configuration to pass to kubernetes (affinity, node selector, tolerations). | ||
// +kubebuilder:pruning:PreserveUnknownFields | ||
// +nullable | ||
// +optional | ||
Placement rookv1.PlacementSpec `json:"placement,omitempty"` | ||
Placement map[string]string `json:"placement,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not right,
we need such struct
https://github.com/rook/rook/blob/ffaf4a1b3fcea3e0cabb6436328f643ad59407f8/pkg/apis/ceph.rook.io/v1/types.go#L2763C24-L2779
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hzxuzhonghu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…age updates
What type of PR is this?
Unified Distributed Storage API Implementation and Dependency Package Follow-Up
What this PR does / why we need it:
Complete API design of storage and go dependency package updates