Merge branch 'master' of github.com:kubernetes/minikube into cluster-name

pull/7219/head
Sharif Elgamal 2020-03-25 16:35:13 -07:00
commit 073cdf0eae
3 changed files with 15 additions and 4 deletions

View File

@ -233,11 +233,13 @@ jobs:
runs-on: ubuntu-16.04
steps:
# conntrack is required for kubernetes 1.18 and higher
- name: Install conntrack
# socat is required for kubectl port forward which is used in some tests such as validateHelmTillerAddon
- name: Install tools for none
shell: bash
run: |
sudo apt-get update -qq
sudo apt-get -qq -y install conntrack
sudo apt-get -qq -y install socat
- name: Install gopogh
shell: bash
run: |
@ -303,11 +305,13 @@ jobs:
runs-on: ubuntu-18.04
steps:
# conntrack is required for kubernetes 1.18 and higher
- name: Install conntrack
# socat is required for kubectl port forward which is used in some tests such as validateHelmTillerAddon
- name: Install tools for none
shell: bash
run: |
sudo apt-get update -qq
sudo apt-get -qq -y install conntrack
sudo apt-get -qq -y install socat
- name: Install gopogh
shell: bash
run: |

View File

@ -53,11 +53,17 @@ sudo systemctl is-active --quiet kubelet \
# conntrack is required for kubernetes 1.18 and higher for none driver
if ! conntrack --version &>/dev/null; then
echo "WARNING: No contrack is not installed"
echo "WARNING: contrack is not installed. will try to install."
sudo apt-get update -qq
sudo apt-get -qq -y install conntrack
fi
# socat is required for kubectl port forward which is used in some tests such as validateHelmTillerAddon
if ! which socat &>/dev/null; then
echo "WARNING: socat is not installed. will try to install."
sudo apt-get update -qq
sudo apt-get -qq -y install socat
fi
mkdir -p cron && gsutil -m rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron || echo "FAILED TO GET CRON FILES"
sudo install cron/cleanup_and_reboot_Linux.sh /etc/cron.hourly/cleanup_and_reboot || echo "FAILED TO INSTALL CLEANUP"

View File

@ -233,7 +233,8 @@ func validateKubectlGetPods(ctx context.Context, t *testing.T, profile string) {
// validateMinikubeKubectl validates that the `minikube kubectl` command returns content
func validateMinikubeKubectl(ctx context.Context, t *testing.T, profile string) {
kubectlArgs := []string{"kubectl", "--", "get", "pods"}
// Must set the profile so that it knows what version of Kubernetes to use
kubectlArgs := []string{"-p", profile, "kubectl", "--", "--context", profile, "get", "pods"}
rr, err := Run(t, exec.CommandContext(ctx, Target(), kubectlArgs...))
if err != nil {
t.Fatalf("%s failed: %v", rr.Args, err)