Skip to content

Commit

Permalink
Merge pull request #12775 from hashicorp/backport/b-csi-plugin-diff-d…
Browse files Browse the repository at this point in the history
…estructive/ghastly-unified-boa

This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-nomad-core authored Apr 25, 2022
2 parents 3a86218 + 6627bd8 commit 85831d8
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 @@ -409,6 +409,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 85831d8

Please sign in to comment.