-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Disambiguate and clean up pkg/kubelet/config #123066
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
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tallclair The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I cleaned up the linter errors, although none were actually from this PR. |
/retest |
1 similar comment
/retest |
/triage accepted |
"os" | ||
"regexp" | ||
|
||
"k8s.io/klog/v2" |
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.
nit: i'd move this down to k8s block.
/cc @bobbypage |
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and | |||
limitations under the License. | |||
*/ | |||
|
|||
package config |
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.
admitting, I am not good with names. Why not keep it just config
?
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.
Do you mean why "kubeletconfig" rather than "config"? Mostly because I don't want people getting confused between the old config package, and kubelet config. And also because kubeletconfig
already exists, and didn't seem like it needed changing. I'm definitely open to renaming that one though.
PR needs rebase. 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/test-infra repository. |
/assign @wangzhen127 |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
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. |
/reopen |
@wangzhen127: Reopened this PR. In response to this:
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. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
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. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
The package
pkg/kubelet/config
was originally intended to provide streams of pods ("pod configs", aka pod api objects) from various sources (apiserver, file, http), but the nameconfig
is overloaded, and understandably people started putting files related to kubelet configuration in that directory.To disambiguate the two uses,
pkg/kubelet/config
is renamed topodsource
, and kubelet conifguration related code to is moved to thepkg/kubelet/kubeletconfig
package. There are already some references to pod sources, hence the name choice.Full list of changes:
pkg/kubelet/config -> pkg/kubelet/podsource
PodConfig -> PodSource
(and related symbols)ContainerRuntimeOptions
topkg/kubelet/kubeconfig
ContainerRuntimeOptions
flags tocmd/kubelet/app/options
Does this PR introduce a user-facing change?
/sig node