Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid setting owner refs if the service mesh/ingress is on a different cluster #1183

Merged
merged 1 commit into from
May 6, 2022

Conversation

aryan9600
Copy link
Member

@aryan9600 aryan9600 commented May 5, 2022

Checks if the host of the cluster where Flagger is installed is different from the cluster where the ingress/service mesh is installed, and sets OwnerRefs on created resources accordingly.

Fix: #694

Signed-off-by: Sanskar Jaiswal sanskar.jaiswal@weave.works

@aryan9600 aryan9600 requested a review from stefanprodan as a code owner May 5, 2022 15:31
@codecov-commenter
Copy link

codecov-commenter commented May 5, 2022

Codecov Report

Merging #1183 (8c690d1) into main (a8b4e9c) will decrease coverage by 1.95%.
The diff coverage is 6.41%.

@@            Coverage Diff             @@
##             main    #1183      +/-   ##
==========================================
- Coverage   56.91%   54.95%   -1.96%     
==========================================
  Files          79       79              
  Lines        6631     6640       +9     
==========================================
- Hits         3774     3649     -125     
- Misses       2301     2418     +117     
- Partials      556      573      +17     
Impacted Files Coverage Δ
pkg/router/appmesh.go 81.18% <0.00%> (-4.63%) ⬇️
pkg/router/appmesh_v1beta2.go 82.70% <0.00%> (-5.68%) ⬇️
pkg/router/contour.go 86.34% <0.00%> (-2.39%) ⬇️
pkg/router/factory.go 0.00% <0.00%> (ø)
pkg/router/gateway_api.go 41.59% <0.00%> (-3.10%) ⬇️
pkg/router/istio.go 76.07% <0.00%> (-5.00%) ⬇️
pkg/router/skipper.go 54.03% <0.00%> (-5.32%) ⬇️
pkg/router/traefik.go 68.86% <0.00%> (-6.61%) ⬇️
pkg/router/gloo.go 69.72% <7.14%> (-6.08%) ⬇️
pkg/router/smi.go 41.60% <11.11%> (-5.61%) ⬇️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a8b4e9c...8c690d1. Read the comment docs.

Annotations: filterMetadata(metadata.Annotations),
},
Spec: trSpec,
Mesh: meshName,
}
if kr.setOwnerRefs {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to #1170 we shouldn't set OwnerReference on TrafficRoutes since they are global objects while Canaries are namespaced. Right now Kubernetes issues warning events. Please remove this OwnerReference from the Kuma router.

Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @aryan9600 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi-Cluster IstioMesh not working
3 participants