-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Scheduler: remove direct import to /pkg/util/parsers #90008
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
Scheduler: remove direct import to /pkg/util/parsers #90008
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, but some things I'm thinking that we might want to consider:
This const is only used in 1 other spot (pkg/kubelet/images), so could it be cleaned up there too?
Going even further, does latest
really need to be a constant for the default image tag? Ie, do we foresee having to change that? It's actually shorter to type latest
than defaultImageTag
in the first place so I'm not sure what's gained by having a constant for something that's kind of assumed. But I'm not strict about that, just thinking out loud.
/lgtm
Letting kubelet depend on k/util looks good to me. I think it is unnecessary to duplicate it in kubelet too.
+1. This constant is introduced five years ago in #17278. It is never changed and I cannot foresee any cases it may change. I can remove the constant if it looks better. |
@gavinfish would you like to add another commit removing the const entirely? We'll need kubelet owners to approve that and then we can get their opinion on it |
38ad8c4
to
70c6a0a
Compare
70c6a0a
to
0b715ea
Compare
@damemi I just remove the |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
will need approval from a pkg owner as well
/assign @lavalamp |
kubelet change lgtm. /approve |
Thanks @derekwaynecarr @lavalamp polite ping, this needs a |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: derekwaynecarr, gavinfish, lavalamp The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
this looks new, anything we need to do to poke it? |
/test pull-kubernetes-files-remake |
/retest Review the full test history for this PR. Silence the bot with an |
6 similar comments
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Scheduler: remove direct import to /pkg/util/parsers
Which issue(s) this PR fixes:
Ref #89930
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: