mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
kubeadm: Force to disable debug mode for crictl
Signed-off-by: Dave Chen <dave.chen@arm.com>
This commit is contained in:
parent
7f920da442
commit
c5b22b535b
@ -84,7 +84,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