-
Notifications
You must be signed in to change notification settings - Fork 137
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
Transfer EC.Labels and EC.Annotations to the POD spec #4153
base: main
Are you sure you want to change the base?
Conversation
c2f26e5
to
3cc39af
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #4153 +/- ##
=======================================
Coverage 64.49% 64.50%
=======================================
Files 399 399
Lines 26772 26778 +6
=======================================
+ Hits 17266 17272 +6
Misses 8145 8145
Partials 1361 1361
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
3cc39af
to
1e4fc72
Compare
1e4fc72
to
f037d58
Compare
labels := maputils.MergeMap( | ||
ec.Labels, | ||
appLabels.BuildLabels(), | ||
buildLabels := appLabels.BuildLabels() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we find alternative name? It's appLabels TBH.
|
||
deployment := New(ec) | ||
|
||
assert.Len(t, deployment.Spec.Template.Labels, 5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check a bit confusing, better IMO demonstrate that we only have default app labels.
JIRA
Description
edgeconnect.Spec.Labels
andedgeconnect.Spec.Annotations
are applied toObjectMeta
of the EC POD being created.deployment.ObjectMeta.Labels
,deployment.Spec.Selector
values are calculated in the same way as in case of EEC/OTELC statefulset.How can this be tested?