-
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
CSI: make plugin health_timeout configurable in csi_plugin stanza #13340
CSI: make plugin health_timeout configurable in csi_plugin stanza #13340
Conversation
Signed-off-by: Grant Griffiths <[email protected]>
51d7080
to
1b95fc4
Compare
2c63507
to
71d279f
Compare
Signed-off-by: Grant Griffiths <[email protected]>
71d279f
to
a496915
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.
This looks great @ggriffiths!
There's a jobspec checklist which I probably should have pointed out in the original issue, but it looks like you've already hit almost everything needed there except for the implementation for structs/diff.go
.
We'll also want this new field added to the CSI plugin parameters documentation.
Thanks for the PR!
Signed-off-by: Grant Griffiths <[email protected]>
@tgross, thanks for the pointer! For |
Oh. You've just discovered a bug in failing testdiff --git a/nomad/structs/diff_test.go b/nomad/structs/diff_test.go
index 1a5751a8c..153c5bb94 100644
--- a/nomad/structs/diff_test.go
+++ b/nomad/structs/diff_test.go
@@ -7377,6 +7377,40 @@ func TestTaskDiff(t *testing.T) {
},
},
},
+ {
+ Name: "CSIPlugin edited",
+ Old: &Task{
+ CSIPluginConfig: &TaskCSIPluginConfig{
+ ID: "id0",
+ Type: "monolith",
+ MountDir: "/csi",
+ },
+ },
+ New: &Task{
+ CSIPluginConfig: &TaskCSIPluginConfig{
+ ID: "id0",
+ Type: "monolith",
+ MountDir: "/whatever",
+ },
+ },
+ Expected: &TaskDiff{
+ Type: DiffTypeEdited,
+ Objects: []*ObjectDiff{
+ {
+ Type: DiffTypeEdited,
+ Name: "CSIPluginConfig",
+ Fields: []*FieldDiff{
+ {
+ Type: DiffTypeEdited,
+ Name: "MountDir",
+ Old: "/csi",
+ New: "/whatever",
+ },
+ },
+ },
+ },
+ },
+ },
}
for _, c := range cases { Because that's a bug and this PR is for a feature improvement, we'll need to handle those as separate PRs so we can backport the plan fix. So don't worry about diff for now and I'll come back for that later once this has been 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.
LGTM! This will ship in the upcoming Nomad 1.3.2
…3340) Signed-off-by: Grant Griffiths <[email protected]>
…3340) Signed-off-by: Grant Griffiths <[email protected]>
The changelog entry for #13340 indicated it was an improvement. But on discussion, it was determined that this was a workaround for a regression. Update the changelog to make this clear.
…3340) (#13367) Co-authored-by: Grant Griffiths <[email protected]>
…3340) (#13366) Signed-off-by: Grant Griffiths <[email protected]> Co-authored-by: Grant Griffiths <[email protected]>
The changelog entry for #13340 indicated it was an improvement. But on discussion, it was determined that this was a workaround for a regression. Update the changelog to make this clear.
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. |
Fixes #13179
Test results: Configured health_timeout as
5m
and introduced an artificial error to make sure Portworx was killed after 5m:Signed-off-by: Grant Griffiths [email protected]