mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
Merge pull request #1205 from shipt/bugfix-contour-annotation-override
fix contour httproxy annotations overwrite
This commit is contained in:
@@ -188,9 +188,10 @@ func (cr *ContourRouter) Reconcile(canary *flaggerv1.Canary) error {
|
||||
}
|
||||
|
||||
if cr.ingressClass != "" {
|
||||
proxy.Annotations = map[string]string{
|
||||
annotation: cr.ingressClass,
|
||||
if proxy.Annotations == nil {
|
||||
proxy.Annotations = make(map[string]string)
|
||||
}
|
||||
proxy.Annotations[annotation] = cr.ingressClass
|
||||
}
|
||||
|
||||
_, err = cr.contourClient.ProjectcontourV1().HTTPProxies(canary.Namespace).Create(context.TODO(), proxy, metav1.CreateOptions{})
|
||||
|
||||
Reference in New Issue
Block a user