Always add override labels (#305)

This commit is contained in:
KirillPamPam
2023-09-21 15:20:16 +04:00
committed by GitHub
parent 85880b4277
commit 0f9b8b01b9

View File

@@ -53,6 +53,10 @@ class GrpcUpstreamStatus(
updateLabels.add(labels)
}
if (updateLabels.isEmpty()) {
overrideLabels?.let { updateLabels.add(it) }
}
this.nodes.set(updateNodes)
val labelsChanged = updateLabels != this.allLabels.get().toList()
this.allLabels.set(Collections.unmodifiableCollection(updateLabels))