Skip to content

Commit

Permalink
CSI: plugin config updates should always be destructive
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed Apr 25, 2022
1 parent e4d6d51 commit fc2c214
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 @@ -551,6 +551,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 fc2c214

Please sign in to comment.