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