Skip to content
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

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

tgross
Copy link
Member

@tgross tgross commented Jul 20, 2023

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.

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.
@tgross tgross requested review from gulducat and lgfa29 July 20, 2023 20:24
@@ -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"
Copy link
Member Author

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}
Copy link
Member Author

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.

@tgross tgross merged commit a4b69ab into release/1.4.x Jul 20, 2023
23 of 24 checks passed
@tgross tgross deleted the csi-backport-pr-17996-to-1.4.x branch July 20, 2023 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants