Merge pull request #117835 from pacoxu/kubeadm-crictl

kubeadm: fix crictl pull using wrong flag, use -i and -r
This commit is contained in:
Kubernetes Prow Robot 2023-05-06 09:31:15 -07:00 committed by GitHub
commit 50ce134595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ func (runtime *CRIRuntime) Socket() string {
// crictl creates a crictl command for the provided args.
func (runtime *CRIRuntime) crictl(args ...string) utilsexec.Cmd {
cmd := runtime.exec.Command(runtime.crictlPath, append([]string{"-r", runtime.Socket()}, args...)...)
cmd := runtime.exec.Command(runtime.crictlPath, append([]string{"-r", runtime.Socket(), "-i", runtime.Socket()}, args...)...)
cmd.SetEnv(os.Environ())
return cmd
}