mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #42901 from fabianofranz/issues_42697
Automatic merge from submit-queue (batch tested with PRs 41794, 42349, 42755, 42901, 42933) Fixes kubectl skew test failure when using kubectl.sh Fixes leftovers from https://github.com/kubernetes/kubernetes/pull/42737. **Release note**: ```release-note NONE ```
This commit is contained in:
commit
81ba4741f3
@ -593,7 +593,7 @@ var _ = framework.KubeDescribe("Kubectl client", func() {
|
||||
// we need the actual kubectl binary, not the script wrapper
|
||||
kubectlPathNormalizer := exec.Command("which", kubectlPath)
|
||||
if strings.HasSuffix(kubectlPath, "kubectl.sh") {
|
||||
kubectlPathNormalizer = exec.Command("sh", "-c", kubectlPath, "path")
|
||||
kubectlPathNormalizer = exec.Command(kubectlPath, "path")
|
||||
}
|
||||
kubectlPathNormalized, err := kubectlPathNormalizer.Output()
|
||||
framework.ExpectNoError(err)
|
||||
|
Loading…
Reference in New Issue
Block a user