Merge pull request #110874 from chendave/fix_debug

kubeadm: Force to disable debug mode for `crictl`
This commit is contained in:
Kubernetes Prow Robot 2022-06-30 10:42:20 -07:00 committed by GitHub
commit 3eb7b7a48f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,10 @@ func (runtime *CRIRuntime) IsRunning() error {
// ListKubeContainers lists running k8s CRI pods
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 {
return nil, errors.Wrapf(err, "output: %s, error", string(out))
}