CSI: plugin config updates should always be destructive (#12774)

This commit is contained in:
Tim Gross
2022-04-25 12:59:25 -04:00
committed by GitHub
parent a01e219b1c
commit 3aa520e0bd
2 changed files with 6 additions and 0 deletions

3
.changelog/12774.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:bug
csi: Fixed a bug where plugin configuration updates were not considered destructive
```

View File

@@ -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(