-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
kubectl: include init containers when determining pod QoS #104909
Conversation
…stent with kubelet Signed-off-by: thomassong <thomassong2012@gmail.com> Co-authored-by: Paco Xu <paco.xu@daocloud.io>
/triage accepted |
Can you please add a comment to the original function? Something like
|
Can you please also rename the diff pkg/apis/core/helper/qos/qos.go staging/src/k8s.io/kubectl/pkg/util/qos/qos.go
2c2
< Copyright 2017 The Kubernetes Authors.
---
> Copyright 2015 The Kubernetes Authors.
17,18d16
< // NOTE: DO NOT use those helper functions through client-go, the
< // package path will be changed in the future.
21a20
> corev1 "k8s.io/api/core/v1"
24d22
< "k8s.io/kubernetes/pkg/apis/core"
27c25
< var supportedQoSComputeResources = sets.NewString(string(core.ResourceCPU), string(core.ResourceMemory))
---
> var supportedQoSComputeResources = sets.NewString(string(corev1.ResourceCPU), string(corev1.ResourceMemory)) |
Updated @eddiezane
|
3db4774
to
ac27f29
Compare
Thank you! /approve |
/assign @lavalamp For the comment approval. |
@eddiezane approved the change in kubectl |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eddiezane, liggitt, pacoxu 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 |
maybe it's better to add a note like |
/lgtm |
/kind bug
Fixes #98782
/sig cli
/assign soltysh
sync #75223 logics to kubectl like #98783