Skip to content
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

Merged
merged 3 commits into from
Oct 24, 2023
Merged

Unified Distributed Storage API implementation #403

merged 3 commits into from
Oct 24, 2023

Conversation

LiZhenCheng9527
Copy link
Contributor

…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

@netlify
Copy link

netlify bot commented Oct 18, 2023

Deploy Preview for kurator-dev canceled.

Name Link
🔨 Latest commit e07b11f
🔍 Latest deploy log https://app.netlify.com/sites/kurator-dev/deploys/65377c1f74d9190008d3d4b6

// e.g. /var/lib/rook
// +kubebuilder:validation:Pattern=`^/(\S+)`
// +optional
DataDirHostPath string `json:"dataDirHostPath,omitempty"`
Copy link
Contributor

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).

// A spec for mon related options
// +optional
// +nullable
Monitor MonSpec `json:"monitor,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

// A spec for mgr related options
// +optional
// +nullable
Manager MgrSpec `json:"manager,omitempty"`
Copy link
Contributor

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

}

type DistributedStorage struct {
// The path on the host where config and data can be persisted. Must be set.
Copy link
Member

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

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

white space

pkg/apis/fleet/v1alpha1/types.go Outdated Show resolved Hide resolved
…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>
@Xieql
Copy link
Contributor

Xieql commented Oct 21, 2023

your force push overwrite the origin commit, so reviewers can not get the delta change

@LiZhenCheng9527 LiZhenCheng9527 changed the title Unified Distributed Storage API implementation and go dependency pack… Unified Distributed Storage API implementation Oct 23, 2023
pkg/apis/fleet/v1alpha1/types.go Show resolved Hide resolved

// 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"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
Copy link
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@kurator-bot
Copy link
Collaborator

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kurator-bot kurator-bot merged commit 441a817 into kurator-dev:main Oct 24, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants