From b2e4841747b2e5590ef1a4cd4ca44f304d916ed4 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Mon, 25 Apr 2022 12:59:25 -0400 Subject: [PATCH] CSI: plugin config updates should always be destructive (#12774) --- .changelog/12774.txt | 3 +++ scheduler/util.go | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 .changelog/12774.txt diff --git a/.changelog/12774.txt b/.changelog/12774.txt new file mode 100644 index 000000000..3019dd5e6 --- /dev/null +++ b/.changelog/12774.txt @@ -0,0 +1,3 @@ +```release-note:bug +csi: Fixed a bug where plugin configuration updates were not considered destructive +``` diff --git a/scheduler/util.go b/scheduler/util.go index 004a57b73..9f938d1ba 100644 --- a/scheduler/util.go +++ b/scheduler/util.go @@ -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(