Tests: Fallback to yq. (#13090)
Co-authored-by: Marco Ebert <marco_ebert@icloud.com>
This commit is contained in:
parent
f6497586d2
commit
6ac35d8ae7
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ kubectl create clusterrolebinding permissive-binding \
|
|||
--user=kubelet \
|
||||
--serviceaccount=default:ingress-nginx-e2e || true
|
||||
|
||||
VER=$(kubectl version --client=false -o json |jq '.serverVersion.minor |tonumber')
|
||||
VER=$(kubectl version --client=false --output json | (jq ".serverVersion.minor | tonumber" || yq ".serverVersion.minor | tonumber"))
|
||||
if [ $VER -lt 24 ]; then
|
||||
echo -e "${BGREEN}Waiting service account...${NC}"; \
|
||||
until kubectl get secret | grep -q -e ^ingress-nginx-e2e-token; do \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue