diff --git a/.changelog/23764.txt b/.changelog/23764.txt new file mode 100644 index 000000000..8b8c1f393 --- /dev/null +++ b/.changelog/23764.txt @@ -0,0 +1,3 @@ +```release-note:bug +cni: network.cni jobspec updates now replace allocs to apply the new network config +``` diff --git a/scheduler/util.go b/scheduler/util.go index 85a94addc..09d52b5a3 100644 --- a/scheduler/util.go +++ b/scheduler/util.go @@ -544,6 +544,10 @@ func networkUpdated(netA, netB []*structs.NetworkResource) comparison { return difference("network dns", an.DNS, bn.DNS) } + if !an.CNI.Equal(bn.CNI) { + return difference("network cni", an.CNI, bn.CNI) + } + aPorts, bPorts := networkPortMap(an), networkPortMap(bn) if !aPorts.Equal(bPorts) { return difference("network port map", aPorts, bPorts)