namespaces := "kube-system"
pod := exec.Command("/bin/bash", "-c", "kubectl get pod -n namespaces")
怎么把变量的namespaces传进exec.command
namespaces := "kube-system"
pod := exec.Command("/bin/bash", "-c", "kubectl get pod -n namespaces")
怎么把变量的namespaces传进exec.command
pod := exec.Command("/bin/bash", "-c", "kubectl get pod -n" + namespaces)