mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
Merge pull request #1100 from SomtochiAma/topology-spread
Update matchLabels for TopologySpreadContstraints in Deployments
This commit is contained in:
@@ -529,6 +529,14 @@ func (c *DeploymentController) appendPrimarySuffixToValuesIfNeeded(labelSelector
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for key, value := range labelSelector.MatchLabels {
|
||||
if contains(c.labels, key) {
|
||||
if value == canaryDep.Name {
|
||||
labelSelector.MatchLabels[key] = value + "-primary"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user