Skip to content

Commit

Permalink
Merge pull request #12776 from hashicorp/backport/b-csi-plugin-diff-d…
Browse files Browse the repository at this point in the history
…estructive/forcibly-noted-mayfly

This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-nomad-core authored Apr 25, 2022
2 parents 49baf2a + 57d6c27 commit 75477fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/12774.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
csi: Fixed a bug where plugin configuration updates were not considered destructive
```
3 changes: 3 additions & 0 deletions scheduler/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ func tasksUpdated(jobA, jobB *structs.Job, taskGroup string) bool {
if !reflect.DeepEqual(at.Templates, bt.Templates) {
return true
}
if !reflect.DeepEqual(at.CSIPluginConfig, bt.CSIPluginConfig) {
return true
}

// Check the metadata
if !reflect.DeepEqual(
Expand Down

0 comments on commit 75477fc

Please sign in to comment.