mirror of https://github.com/status-im/consul.git
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
|
@ -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…
Reference in New Issue