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

config: add app.kubernetes.io/component label #794

Merged
merged 3 commits into from
Apr 6, 2022

Conversation

cirocosta
Copy link
Contributor

@cirocosta cirocosta commented Apr 6, 2022

Changes proposed by this PR

  • add an overlay used by the release process to add to all objects the app.kubernetes.io/component label to identify objects as being all part of cartographer

following the best practices when it comes to labelling objects (see
1), by making use of the recommended app.kubernetes.io/component,
we're able to clearly identify those objects that are part of
cartographer (useful for any tool that might want to do some form of
matching against anything cartographer-related, e.g., getting rid of all
of them based on matching on such label).

the approach I took here is to make use of ytt overlays in order to add
the label to all components except the Namespace.

Release Note

  • Add app.kubernetes.io/component: cartographer.carto.run label to all cartographer objects (except namespace).

PR Checklist

Note: Please do not remove items. Mark items as done [x] or use strikethrough if you believe they are not relevant

  • Linked to a relevant issue. Eg: Fixes #123 or Updates #123
  • Removed non-atomic or wip commits
  • Filled in the Release Note section above
  • Modified the docs to match changes

following the best practices when it comes to labelling objects (see
[1]), by making use of the recommended `app.kubernetes.io/component`,
we're able to clearly identify those objects that are part of
cartographer (useful for any tool that might want to do some form of
matching against anything cartographer-related, e.g., getting rid of all
of them based on matching on such label).

the approach I took here is to make use of ytt overlays in order to add
the label to all components _except_ the Namespace.

[1]: https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/

Signed-off-by: Ciro S. Costa <ciroscosta@vmware.com>
@netlify
Copy link

netlify bot commented Apr 6, 2022

Deploy Preview for elated-stonebraker-105904 canceled.

Name Link
🔨 Latest commit e616ecd
🔍 Latest deploy log https://app.netlify.com/sites/elated-stonebraker-105904/deploys/624de2e8e9474f0009e6fffe

@cirocosta
Copy link
Contributor Author

cc @scothis

Ciro S. Costa and others added 2 commits April 6, 2022 11:23
Co-authored-by: Scott Andrews <andrewssc@vmware.com>
Co-authored-by: Emily Johnson <51918476+emmjohnson@users.noreply.github.com>
@cirocosta cirocosta enabled auto-merge (squash) April 6, 2022 19:12
@cirocosta cirocosta merged commit b059780 into main Apr 6, 2022
@cirocosta cirocosta deleted the config/component-label branch April 6, 2022 20:44
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.

3 participants