Skip to content

Commit

Permalink
Always add override labels (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillPamPam authored Sep 21, 2023
1 parent 85880b4 commit 0f9b8b0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0f9b8b0

Please sign in to comment.