-
Notifications
You must be signed in to change notification settings - Fork 18
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
api: add radosNamespace field to CephFsConfigSpec #165
base: main
Are you sure you want to change the base?
Changes from all commits
24b685f
3f8b947
85418e8
0154232
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -31,10 +31,15 @@ type CephFsConfigSpec struct { | |||||
|
||||||
//+kubebuilder:validation:Optional | ||||||
FuseMountOptions map[string]string `json:"fuseMountOptions,omitempty"` | ||||||
|
||||||
//+kubebuilder:validation:XValidation:rule="self == oldSelf",message="radosNamespace is immutable" | ||||||
//+kubebuilder:validation:Optional | ||||||
RadosNamespace string `json:"radosNamespace,omitempty"` | ||||||
nb-ohad marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The usage of a Rados namespace for CephFs is sepcificly for OMAP data. The current proposed name for this field does not reflects that. I would suggest the following instead:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OMAP are RADOS objects so the term There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @iPraveenParihar What I am saying is that the name should capture that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's radosNamespace in cephcsi, let's keep it the same. Currently it may well be only used for omap usage but it might change in the future. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. User-facing API design is essential for me, there is already past acknowledgment that the Ceph CSI project did not select good names for some of its front-facing configurations. Bringing them as an example does not make a good case. Regarding the other part of the comment:
Given the above 3 points, we should go with something like OmapRadosNamaspece which captures both the intent of the nob and the entity type this nob is referring to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I completely disagree with the statement Changing such conventions in above layers only causes confusion.
RadosNamespace is the key we are using for cephfs section in cephcsi, we should keep it the same in cephcsi Operator. It implies cephcsi will use this radosNS for operations, right now it maybe limited to just omap but might change in the future. If you would like more specific naming, please open issue in cephcsi, we'll change it there, then in Operator. I would prefer this approach instead of introducing new names abruptly in above layers. Future additional cases can use another specific key. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Madhu-1, can you please provide your inputs here? |
||||||
} | ||||||
|
||||||
// RbdConfigSpec defines the desired RBD configuration | ||||||
type RbdConfigSpec struct { | ||||||
//+kubebuilder:validation:XValidation:rule="self == oldSelf",message="radosNamespace is immutable" | ||||||
//+kubebuilder:validation:Optional | ||||||
RadosNamespace string `json:"radosNamespace,omitempty"` | ||||||
} | ||||||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Why the immutability?
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.
#165 (comment)