-
Notifications
You must be signed in to change notification settings - Fork 334
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
Use Connection() from util package #234
Use Connection() from util package #234
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane 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 |
41d9159
to
a9543a0
Compare
return "", fmt.Errorf("name is empty") | ||
} | ||
return name, nil | ||
return connection.GetDriverName(ctx, conn) | ||
} | ||
|
||
func getDriverCapabilities(conn *grpc.ClientConn, timeout time.Duration) (sets.Int, error) { |
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.
and update getcapabilities?
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.
added
a9543a0
to
e63995f
Compare
cc @lpabon |
} | ||
switch service.GetType() { | ||
for cap := range pluginCaps { | ||
switch cap { |
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.
Is mixing plugin and controller capabilities into the same set correct? Could you have conflicts in values?
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.
PluginCapability_*
and ControllerCapability_*
are part of the same enum defined in the provisioner, they don't come from CSI:
external-provisioner/pkg/controller/controller.go
Lines 160 to 165 in e63995f
const ( | |
PluginCapability_CONTROLLER_SERVICE = iota | |
PluginCapability_ACCESSIBILITY_CONSTRAINTS | |
ControllerCapability_CREATE_DELETE_VOLUME | |
ControllerCapability_CREATE_DELETE_SNAPSHOT | |
) |
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.
Thanks for pointing that out. Is there a reason why it needs to have one more level of translation from CSI capabilities?
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.
Can we sort it out in a separate PR? I'd like to cache the capabilities so provisioner does not load them from the driver every time it needs them. Refactoring of the enum would be better there.
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.
Sure do you want to use csi-lib-utils 0.4.0-rc1 here?
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.
Updated to 0.4.0-rc1
e63995f
to
2aeb480
Compare
2aeb480
to
20cb5e5
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.
/lgtm
984feece4 Merge pull request kubernetes-csi#234 from siddhikhapare/csi-tools 1f7e60599 fixed broken links of testgrid dashboard git-subtree-dir: release-tools git-subtree-split: 984feece4bafac3aad74deeed76a500a0c485fb1
master: update release-tools
984feece4 Merge pull request #234 from siddhikhapare/csi-tools 1f7e60599 fixed broken links of testgrid dashboard git-subtree-dir: release-tools git-subtree-split: 984feece4bafac3aad74deeed76a500a0c485fb1
dc4d0ae20 Merge pull request kubernetes-csi#249 from jsafrane/use-go-version e681b170e Use .go-version to get Kubernetes go version b54c1ba49 Merge pull request kubernetes-csi#246 from xing-yang/go_1.21 5436c81e9 Change go version to 1.21.5 267b40e97 Merge pull request kubernetes-csi#244 from carlory/sig-storage b42e5a2de nominate self (carlory) as kubernetes-csi reviewer a17f536fc Merge pull request kubernetes-csi#210 from sunnylovestiramisu/sidecar 011033de2 Use set -x instead of die 5deaf667c Add wrapper script for sidecar release f8c8cc4c7 Merge pull request kubernetes-csi#237 from msau42/prow b36b5bfdc Merge pull request kubernetes-csi#240 from dannawang0221/upgrade-go-version adfddcc9a Merge pull request kubernetes-csi#243 from pohly/git-subtree-pull-fix c4650889d pull-test.sh: avoid "git subtree pull" error 7b175a1e2 Update csi-test version to v5.2.0 987c90ccd Update go version to 1.21 to match k/k 2c625d41d Add script to generate patch release notes f9d5b9c05 Merge pull request kubernetes-csi#236 from mowangdk/feature/bump_csi-driver-host-path_version b01fd5372 Bump csi-driver-host-path version up to v1.12.0 984feece4 Merge pull request kubernetes-csi#234 from siddhikhapare/csi-tools 1f7e60599 fixed broken links of testgrid dashboard git-subtree-dir: release-tools git-subtree-split: dc4d0ae20a3dcce17fbfc745fb1f1e3b10cd9644
The result should be the same as in kubernetes-csi/external-attacher#123