mirror of https://github.com/hashicorp/consul
Backport of Fixes Secondary ConnectCA update into release/1.15.x (#17953)
* backport of commitpull/17960/headafa1f42cc7
* backport of commite0970025d4
* backport of commit2f2aad545b
* backport of commit4a5c9c181f
--------- Co-authored-by: Ranjandas <thejranjan@gmail.com> Co-authored-by: Chris S. Kim <kisunji92@gmail.com>
parent
4e3a2fd343
commit
7c3f4528ba
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
connect/ca: Fixes a bug preventing CA configuration updates in secondary datacenters
|
||||
```
|
|
@ -754,7 +754,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