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 b8dd60f79c
commit b2e4841747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(