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

feat: sync apisix upstream labels #1553

Merged

Conversation

shreemaan-abhishek
Copy link
Contributor

Type of change:

  • New feature provided

What this PR does / why we need it:

Fixes #775

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@@ -141,6 +141,7 @@ func (t *translator) translateExternalApisixUpstream(namespace, upstream string)
if err != nil {
return nil, err
}
ups.Metadata.Labels = au.ObjectMeta.Labels
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is appropriate, it will overwrite all labels.

@codecov-commenter
Copy link

codecov-commenter commented Dec 30, 2022

Codecov Report

Merging #1553 (f65dad4) into master (7862e28) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

❗ Current head f65dad4 differs from pull request most recent head a640d52. Consider uploading reports for the commit a640d52 to get more accurate results

@@            Coverage Diff             @@
##           master    #1553      +/-   ##
==========================================
- Coverage   41.48%   41.47%   -0.02%     
==========================================
  Files          89       89              
  Lines        7667     7669       +2     
==========================================
  Hits         3181     3181              
- Misses       4122     4123       +1     
- Partials      364      365       +1     
Impacted Files Coverage Δ
...kg/providers/apisix/translation/apisix_upstream.go 60.75% <0.00%> (-1.58%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@shreemaan-abhishek shreemaan-abhishek requested review from tao12345666333 and removed request for AlinsRan March 6, 2023 03:02
@tao12345666333 tao12345666333 merged commit bacb8f8 into apache:master Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

request help: sync crd labels to apisix
5 participants