Skip to content

Conversation

matthewgoodman13
Copy link
Contributor

Issue #110

Description of changes:
Added the managed-by label as per issue. Value set to our controller aws-cloud-map-mcs-controller-for-k8s.

Added test to assert that the label was added to any new endpointSlice.

@codecov-commenter
Copy link

codecov-commenter commented Jun 13, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.05%. Comparing base (d2df88b) to head (2e4a44e).
Report is 161 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #139      +/-   ##
==========================================
+ Coverage   73.98%   74.05%   +0.07%     
==========================================
  Files          15       15              
  Lines        1449     1453       +4     
==========================================
+ Hits         1072     1076       +4     
  Misses        300      300              
  Partials       77       77              
Files with missing lines Coverage Δ
pkg/controllers/utils.go 96.10% <100.00%> (+0.10%) ⬆️

Continue to review full report in Codecov by Sentry.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

runakash
runakash previously approved these changes Jun 13, 2022
@matthewgoodman13 matthewgoodman13 merged commit 80d6271 into aws:main Jun 14, 2022
LabelEndpointSliceManagedBy = "endpointslice.kubernetes.io/managed-by"

// ValueEndpointSliceManagedBy indicates the name of the entity that manages the EndpointSlice.
ValueEndpointSliceManagedBy = "aws-cloud-map-mcs-controller-for-k8s"
Copy link
Contributor

Choose a reason for hiding this comment

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

According to spec any unique string is fine, although searching for examples of other controllers that set this value it seems somewhat conventional to use a uri.

@astaticvoid astaticvoid linked an issue Jun 14, 2022 that may be closed by this pull request
matthewgoodman13 added a commit to matthewgoodman13/aws-cloud-map-mcs-controller-for-k8s that referenced this pull request Jun 17, 2022
Added managed by label - issue 110 (aws#139)
runakash pushed a commit to runakash/aws-cloud-map-mcs-controller-for-k8s that referenced this pull request Jun 20, 2025
* Added managed by label - issue 110

* Update utils.go

* rename constants

* Update cloudmap_controller_test.go
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.

Set EndpointSlices managed by label for derived services
4 participants