Merge pull request #110874 from chendave/fix_debug
kubeadm: Force to disable debug mode for `crictl`
This commit is contained in:
commit
3eb7b7a48f
@ -85,7 +85,10 @@ func (runtime *CRIRuntime) IsRunning() error {
|
|||||||
|
|
||||||
// ListKubeContainers lists running k8s CRI pods
|
// ListKubeContainers lists running k8s CRI pods
|
||||||
func (runtime *CRIRuntime) ListKubeContainers() ([]string, error) {
|
func (runtime *CRIRuntime) ListKubeContainers() ([]string, error) {
|
||||||
out, err := runtime.crictl("pods", "-q").CombinedOutput()
|
// Disable debug mode regardless how the crictl is configured so that the debug info won't be
|
||||||
|
// iterpreted to the Pod ID.
|
||||||
|
args := []string{"-D=false", "pods", "-q"}
|
||||||
|
out, err := runtime.crictl(args...).CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "output: %s, error", string(out))
|
return nil, errors.Wrapf(err, "output: %s, error", string(out))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user