remove docker desktop's kubectl

pull/8378/head
Medya Gh 2020-06-04 22:04:03 -07:00
parent 18dd39e5ee
commit 00e256430b
No known key found for this signature in database
GPG Key ID: 7CF7792C6DF3245C
2 changed files with 3 additions and 4 deletions

View File

@ -212,6 +212,7 @@ jobs:
(New-Object Net.WebClient).DownloadFile("https://github.com/medyagh/gopogh/releases/download/v0.1.23/gopogh.exe", "C:\ProgramData\chocolatey\bin\gopogh.exe")
choco install -y kubernetes-cli
choco install -y jq
Remove-Item "C:\Program Files\Docker\Docker\resources\bin\kubectl.exe"
- name: Run Integration Test in powershell
continue-on-error: true
shell: powershell
@ -319,9 +320,10 @@ jobs:
shell: powershell
run: |
$ErrorActionPreference = "SilentlyContinue"
(New-Object Net.WebClient).DownloadFile("https://github.com/medyagh/gopogh/releases/download/v0.1.23/gopogh.exe", "C:\ProgramData\chocolatey\bin\gopogh.exe")
(New-Object Net.WebClient).DownloadFile("https://github.com/medyagh/gopogh/releases/download/v0.1.23/gopogh.exe", "C:\ProgramData\chocolatey\bin\gopogh.exe")
choco install -y kubernetes-cli
choco install -y jq
Remove-Item "C:\Program Files\Docker\Docker\resources\bin\kubectl.exe"
- name: Run Integration Test in powershell
continue-on-error: true
shell: powershell

View File

@ -151,9 +151,6 @@ func validateServiceStable(ctx context.Context, t *testing.T, profile string) {
// Wait until the nginx-svc has a loadbalancer ingress IP
err = wait.PollImmediate(1*time.Second, Minutes(4), func() (bool, error) {
cmd := exec.CommandContext(ctx, "kubectl", "--context", profile, "get", "svc", "nginx-svc", "-o", "jsonpath={.status.loadBalancer.ingress[0].ip}")
if runtime.GOOS == "windows" {
cmd := exec.CommandContext(ctx, "powershell.exe", "-NoProfile", "-NonInteractive", Target()+" -p "+profile+" kubectl -- --context"+profile+" get svc nginx-svc -o jsonpath={.status.loadBalancer.ingress[0].ip}")
}
rr, err := Run(t, cmd)
if err != nil {
return false, err