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

labeller: make component labels more descrete #182

Closed
wants to merge 18 commits into from

Conversation

kruftik
Copy link
Collaborator

@kruftik kruftik commented Mar 23, 2024

No description provided.

@savnadya savnadya added the wip Work in progress label Mar 23, 2024
@kruftik kruftik removed the wip Work in progress label Mar 25, 2024
pkg/components/chyt.go Outdated Show resolved Hide resolved
@kruftik kruftik force-pushed the component-specific-label branch from 35ce5a0 to 8558e48 Compare March 25, 2024 11:16
@kruftik kruftik changed the title labeller: make component labels more descrete and migrate to builder pattern labeller: make component labels more descrete Mar 25, 2024
@kruftik
Copy link
Collaborator Author

kruftik commented Mar 25, 2024

@koct9i @l0kix2 I've rewritten the PR into multiple custom constructors, pls take another look

Copy link
Collaborator

@l0kix2 l0kix2 left a comment

Choose a reason for hiding this comment

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

Since those names of resources and labels are kinda part of our public API (some users might write scripts expecting them) and if we don't want to break it now or in the future it would be wise to first make a PR with test for this values. I think ComponentManager constructor should be split in two parts, where first one is about creating components and not interacting with k8s — so that constructor can be used in such test and we call GetMetaLabelMap for all components and canonize the result.
After that this PR will introduce change and we can be sure if nothing is broken and new changes are intended.

pkg/labeller/labeller.go Outdated Show resolved Hide resolved
pkg/labeller/labeller.go Outdated Show resolved Hide resolved
pkg/labeller/labeller.go Outdated Show resolved Hide resolved
pkg/labeller/labeller.go Outdated Show resolved Hide resolved
pkg/components/strawberry_controller.go Outdated Show resolved Hide resolved
pkg/consts/labels.go Show resolved Hide resolved
@chizhonkova chizhonkova added wip Work in progress assigned Issue has an assignee and removed wip Work in progress labels Apr 1, 2024
@kruftik kruftik force-pushed the component-specific-label branch from 8558e48 to 374c322 Compare April 2, 2024 09:00
@kruftik kruftik force-pushed the component-specific-label branch from 2303234 to 01c315d Compare April 5, 2024 06:03
@kruftik kruftik force-pushed the component-specific-label branch from 1b14641 to 3336916 Compare April 25, 2024 14:08
@l0kix2
Copy link
Collaborator

l0kix2 commented Sep 12, 2024

I guess this one also not actual now after labels refactoring.

@l0kix2 l0kix2 closed this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned Issue has an assignee
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants