Always add override labels (#305)
This commit is contained in:
@@ -53,6 +53,10 @@ class GrpcUpstreamStatus(
|
|||||||
updateLabels.add(labels)
|
updateLabels.add(labels)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (updateLabels.isEmpty()) {
|
||||||
|
overrideLabels?.let { updateLabels.add(it) }
|
||||||
|
}
|
||||||
|
|
||||||
this.nodes.set(updateNodes)
|
this.nodes.set(updateNodes)
|
||||||
val labelsChanged = updateLabels != this.allLabels.get().toList()
|
val labelsChanged = updateLabels != this.allLabels.get().toList()
|
||||||
this.allLabels.set(Collections.unmodifiableCollection(updateLabels))
|
this.allLabels.set(Collections.unmodifiableCollection(updateLabels))
|
||||||
|
|||||||
Reference in New Issue
Block a user