mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-24 04:17:30 +00:00
e2e_node.test does not set default kubectlPath, which lead to test errors as following: [Fail] [sig-storage] EmptyDir volumes [It] pod should support shared volumes between containers [Conformance] When the test trying to read file in shared volume, it uses "kubeclt exec namespace -c container_name -- cat file_name". However, as variable framework.TestContext.KubectlPath not set, kubectl binary can not be found in the test and the tast fails. This patch move kubectlPath flag from RegisterClusterFlags to RegisterCommonFlags, thus default value for framework.TestContext.KubectlPath will be set,and user can also use --kubectl-path flag to set kubectl path. Signed-off-by: Howard Zhang <howard.zhang@arm.com>