-
Notifications
You must be signed in to change notification settings - Fork 950
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
bugfix: change volume metadata struct #1271
Changes from all commits
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 |
---|---|---|
|
@@ -6,10 +6,10 @@ import ( | |
|
||
// Config represents volume config struct. | ||
type Config struct { | ||
ControlAddress string | ||
Timeout time.Duration // operation timeout. | ||
RemoveVolume bool | ||
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 am wondering if we could add some annotations for this field I wish that when code readers reader the struct itself, he could catch the exact meaning of it clearly, rather than trying hard to guess its meaning. If we make it, I think the lifetime of the code would be much longer to be alive. |
||
DefaultBackend string `json:"volume-default-driver"` | ||
VolumeMetaPath string `json:"volume-meta-dir"` | ||
DriverAlias string `json:"volume-driver-alias"` | ||
ControlServerAddress string `json:"control-server-address"` // control server address in csi. | ||
Timeout time.Duration `json:"volume-timeout"` // operation timeout. | ||
RemoveVolume bool `json:"remove-volume"` // remove volume add data or volume's metadata when remove pouch volume. | ||
DefaultBackend string `json:"volume-default-driver"` // default volume backend. | ||
VolumeMetaPath string `json:"volume-meta-dir"` // volume metadata store path. | ||
DriverAlias string `json:"volume-driver-alias"` // driver alias configure. | ||
} |
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.
ControlServerAddress or ControlMasterAddress or MasterAddress?
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.
it means control server address in csi. I change it to
ControlServerAddress