mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
Update matchLabels in LabelSelectors
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
@@ -489,6 +489,11 @@ func (c *DeploymentController) appendPrimarySuffixToValuesIfNeeded(labelSelector
|
||||
}
|
||||
}
|
||||
}
|
||||
for key, value := range labelSelector.MatchLabels {
|
||||
if contains(c.labels, key) {
|
||||
labelSelector.MatchLabels[key] = value + "-primary"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user