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

Transfer EC.Labels and EC.Annotations to the POD spec #4153

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aorcholski
Copy link
Contributor

@aorcholski aorcholski commented Dec 3, 2024

JIRA

Description

edgeconnect.Spec.Labels and edgeconnect.Spec.Annotations are applied to ObjectMeta 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?

  1. unittests
make go/test
  1. deploy EdgeConnect with custom labels, annotations

@aorcholski aorcholski added bug Something isn't working edgeconnect Changes related to EdgeConnect labels Dec 3, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 4, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.50%. Comparing base (0df8665) to head (48a019e).

❗ 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           
Flag Coverage Δ
unittests 64.50% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

labels := maputils.MergeMap(
ec.Labels,
appLabels.BuildLabels(),
buildLabels := appLabels.BuildLabels()
Copy link
Contributor

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)
Copy link
Contributor

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.

@aorcholski aorcholski changed the title WIP Transfers EC.Labels and EC.Annotations to the POD spec Transfer EC.Labels and EC.Annotations to the POD spec Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working edgeconnect Changes related to EdgeConnect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants