diff --git a/asconfig/asconfig_test.go b/asconfig/asconfig_test.go index 86e83c3..f5fce53 100644 --- a/asconfig/asconfig_test.go +++ b/asconfig/asconfig_test.go @@ -197,6 +197,8 @@ func (s *AsConfigTestSuite) TestAsConfigGetDiff() { "xdr.dcs.{DC1}.namespaces.{ns1}.ignore-sets": {Add: []string{"set1"}}, "namespaces.{test}.replication-factor": {Update: 3}, "namespaces.{bar}.replication-factor": {Update: uint64(2)}, + "xdr.dcs.{DC1}.": {Update: 0}, + "xdr.dcs.{DC1}.namespaces.{ns1}.": {Update: 0}, }, }, { @@ -312,6 +314,7 @@ func (s *AsConfigTestSuite) TestAsConfigGetDiff() { "xdr.dcs.{DC3}.namespaces.{ns1}.name": {Add: "ns1"}, "xdr.dcs.{DC3}.namespaces.{ns2}.name": {Remove: "ns2"}, "xdr.dcs.{DC3}.namespaces.{ns1}.bin-policy": {Update: "all"}, + "xdr.dcs.{DC3}.namespaces.{ns1}.": {Update: 0}, }, }, } diff --git a/asconfig/confdiff.go b/asconfig/confdiff.go index 1e58d51..066583a 100644 --- a/asconfig/confdiff.go +++ b/asconfig/confdiff.go @@ -280,7 +280,8 @@ func detailedDiff(log logr.Logger, desired, current Conf, isFlat, // or if type or value is different add/update/remove it for key, desiredValue := range desired { bN := BaseKey(key) - if isNodeSpecificField(bN) || bN == keyIndex { + //if isNodeSpecificField(bN) || bN == keyIndex { + if isNodeSpecificField(bN) { // Ignore node specific details and ordering continue }