]> git.feebdaed.xyz Git - 0xmirror/cilium.git/commit
kvstoremesh: automatically propagate the cluster config from source
authorMarco Iorio <marco.iorio@isovalent.com>
Thu, 11 Dec 2025 10:31:27 +0000 (11:31 +0100)
committerMarco Iorio <marco.iorio@isovalent.com>
Wed, 17 Dec 2025 10:00:26 +0000 (10:00 +0000)
commitc795c02bf05bd6cd81f1657308fcbd74484018c4
tree111e9556058e05f3b81cb8c4de5e683c11e447e4
parente318d0a29d4a1d9d4160fc696bff35c8427bdeeb
kvstoremesh: automatically propagate the cluster config from source

Slightly rework the logic constructing the CiliumClusterConfig object
propagated by KVStoreMesh, copying the one obtained from the source
cluster and explicitly overriding the fields that need to be overridden.
The benefits are two fold: (a) it makes the behavior more explicit,
highlighting which fields are simply propagated and which are actually
mutated, and (b) it avoids the need for tweaking it in case new fields
or capabilities are added in the future, which could be easily missed.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
pkg/clustermesh/kvstoremesh/remote_cluster.go