mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 15:47:21 +00:00
Fixes Secondary ConnectCA update (#17846)
This fixes a bug that was identified which resulted in subsequent ConnectCA configuration update not to persist in the cluster.
This commit is contained in:
parent
bdf4fad7c5
commit
1b1f33f224
3
.changelog/17846.txt
Normal file
3
.changelog/17846.txt
Normal file
@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
connect/ca: Fixes a bug preventing CA configuration updates in secondary datacenters
|
||||
```
|
@ -735,7 +735,9 @@ func shouldPersistNewRootAndConfig(newActiveRoot *structs.CARoot, oldConfig, new
|
||||
if newConfig == nil {
|
||||
return false
|
||||
}
|
||||
return newConfig.Provider == oldConfig.Provider && reflect.DeepEqual(newConfig.Config, oldConfig.Config)
|
||||
|
||||
// Do not persist if the new provider and config are the same as the old
|
||||
return !(newConfig.Provider == oldConfig.Provider && reflect.DeepEqual(newConfig.Config, oldConfig.Config))
|
||||
}
|
||||
|
||||
func (c *CAManager) UpdateConfiguration(args *structs.CARequest) (reterr error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user