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

Use ResourceFlavorReference instead of string consistently #3491

Open
mimowo opened this issue Nov 8, 2024 · 7 comments · May be fixed by #3611
Open

Use ResourceFlavorReference instead of string consistently #3491

mimowo opened this issue Nov 8, 2024 · 7 comments · May be fixed by #3611
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.

Comments

@mimowo
Copy link
Contributor

mimowo commented Nov 8, 2024

/kind cleanup

What would you like to be cleaned:

To use ResourceFlavorReference consistently, and only cast to string when absolutly needed

Why is this needed:

For example here:

  • flavor is casted ResourceFlavorReference -> string here
  • then down in the invocation stack it is casted back from string to ResourceFlavorReference: here
@mimowo mimowo added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Nov 8, 2024
@kannon92
Copy link
Contributor

kannon92 commented Nov 9, 2024

/good-first-issue
/help wanted

@k8s-ci-robot
Copy link
Contributor

@kannon92:
This request has been marked as suitable for new contributors.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

/good-first-issue
/help wanted

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Nov 9, 2024
@shubhamch71
Copy link

shubhamch71 commented Nov 9, 2024

Hi @mimowo I understand the goal is to consistently use ResourceFlavorReference type instead of string throughout the codebase, particularly in ClusterQueuesUsingFlavor() and related methods, only casting to string when absolutely necessary (like in NamespacedName). Could you help clarify the specific scenarios where casting to string would still be necessary apart from NamespacedName ? Also anything you can suggest to get started with this issue?

@mimowo mimowo changed the title Use ResourceFlavorReference instead of string Use ResourceFlavorReference instead of string consistently Nov 12, 2024
@mimowo
Copy link
Contributor Author

mimowo commented Nov 12, 2024

the goal is to consistently use ResourceFlavorReference type instead of string throughout the codebase

yes

Could you help clarify the specific scenarios where casting to string would still be necessary apart from NamespacedName ?

AFAIK only when passing to NamespacedName, but I might be missing some place, it is part of the task to figure out all such places.

Also anything you can suggest to get started with this issue?

I think you are on the right track.

@kaisoz
Copy link
Contributor

kaisoz commented Nov 19, 2024

/assign

@shubhamch71 I've assigned this one to myself because it's still free and you didn't add any update in some time. However, if you already started with it please let me know.

@shubhamch71
Copy link

@kaisoz Thanks for picking this up! I apologize for the delay on my end—I’ve been caught up with work and won’t be able to make further progress on it. Feel free to go ahead and take it forward.

@kaisoz
Copy link
Contributor

kaisoz commented Nov 21, 2024

@shubhamch71 No worries! I'll work on it, thanks for the response 😊

@kaisoz kaisoz linked a pull request Nov 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants