Skip to content

Commit

Permalink
increase sleep, replace eval on yq
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Callaway <[email protected]>
  • Loading branch information
bobcallaway committed Nov 5, 2023
1 parent 7540e35 commit 0b00ad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/setup-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,13 @@ function resource_blaster() {
url="https://github.com/knative/${REPO}/releases/download/${REAL_KNATIVE_VERSION}/${FILE}"

curl -L -s "${url}" \
| yq 'del(.spec.template.spec.containers[]?.resources)' - \
| yq e 'del(.spec.template.spec.containers[]?.resources)' - \
`# Filter out empty objects that come out as {} b/c kubectl barfs` \
| grep -v '^{}$'
}

resource_blaster serving serving-crds.yaml | kubectl apply -f -
sleep 3 # Avoid the race creating CRDs then instantiating them...
sleep 10 # Avoid the race creating CRDs then instantiating them...
resource_blaster serving serving-core.yaml | kubectl apply -f -
resource_blaster net-kourier kourier.yaml | kubectl apply -f -
kubectl patch configmap/config-network \
Expand Down

0 comments on commit 0b00ad9

Please sign in to comment.