-
Notifications
You must be signed in to change notification settings - Fork 38
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
adding vg api #402
adding vg api #402
Conversation
4269cb3
to
54caffa
Compare
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.
There could be many more comments in the go-code. A description of the PR is missing, and would be nice to have references to the CSI/Kubernetes proposals.
@@ -82,4 +82,4 @@ require ( | |||
sigs.k8s.io/yaml v1.3.0 // indirect | |||
) | |||
|
|||
replace github.com/csi-addons/spec => github.com/matancarmeli7/spec v0.0.0-20230703063652-bd35954246e7 | |||
replace github.com/csi-addons/spec => github.com/matancarmeli7/spec v0.0.0-20230711062057-d8d78175c552 |
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 should not be part of this commit anymore once csi-addons/spec#54 is merged
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.
agreed, I will change it once the PR in the spec will be changed
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 can be corrected now
Signed-off-by: matancarmeli7 <[email protected]>
27a75fe
to
b808dde
Compare
@Mergifyio rebase |
❌ Base branch update has failedGit reported the following error:
err-code: 35C31 |
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.
There most likely are functions under controllers/volumegroup.storage/utils that are available somewhere else, or would be suitable for other controllers too. This should probably be cleaned up at a later time.
At the moment I am missing how the communication to the CSI-driver is done. The kubernetes-csi-addons operator communicates over gRPC to the csi-addons-sidecar. The sidecar can be running alongside the CSI-controller (provisioner) or the CSI-nodeplugin. VolumeGroups most likely need to only call function of the CSI-controller. The protocol between the operator and sidecar should be rather simple as the sidecar can resolve the Kubernetes objects (PVC, PV, Secrets, ...). There is no .proto
file added for this communication under https://github.com/csi-addons/kubernetes-csi-addons/tree/main/internal/proto , which is what I would expect.
continue | ||
} | ||
|
||
switch capType := cap.GetVolumeGroup().GetType(); capType { |
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.
maybe write this like
switch cap.GetVolumeGroup().GetType() {
There is no use for capType
as additional variable.
@@ -82,4 +82,4 @@ require ( | |||
sigs.k8s.io/yaml v1.3.0 // indirect | |||
) | |||
|
|||
replace github.com/csi-addons/spec => github.com/matancarmeli7/spec v0.0.0-20230703063652-bd35954246e7 | |||
replace github.com/csi-addons/spec => github.com/matancarmeli7/spec v0.0.0-20230711062057-d8d78175c552 |
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 can be corrected now
This is too complex to include, #588 is a simpler API that lets CSI-drivers handle the grouping of volumes how they like. |
No description provided.