-
Notifications
You must be signed in to change notification settings - Fork 2k
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
backport fix for PR #17996 to 1.4.x #18019
Conversation
The backport for #17996 was automatically merged by BPA but the build did not work due to missing imports and changes to the signatures of some our RPC structs. Fix the backport.
@@ -19,7 +19,6 @@ import ( | |||
cconfig "github.com/hashicorp/nomad/client/config" | |||
cstructs "github.com/hashicorp/nomad/client/structs" | |||
"github.com/hashicorp/nomad/helper/uuid" | |||
"github.com/hashicorp/nomad/lib/lang" |
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 package doesn't exist in Nomad 1.4, so I've hacked together a reasonable equivalent here with an anonymous struct.
|
||
testFn := func(pluginID string, dur time.Duration) { | ||
defer wg.Done() | ||
c := NewCSIVolumeEndpoint(srv, nil) | ||
c := &CSIVolume{srv: srv, logger: nil} |
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 constructor doesn't exist in 1.4 (it was introduced as part of the RPC rate metrics work), so I'm just instantiating this directly.
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
The backport for #17996 was automatically merged by BPA but the build did not work due to missing imports and changes to the signatures of some our RPC structs. Fix the backport.