Merge branch 'master' of github.com:kubernetes/minikube into cluster-name
commit
073cdf0eae
|
@ -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: |
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue