remove docker desktop's kubectl
parent
18dd39e5ee
commit
00e256430b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue