-
Notifications
You must be signed in to change notification settings - Fork 901
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try to fix the installation script and tests
Signed-off-by: juliusvonkohout <[email protected]>
- Loading branch information
1 parent
46c393d
commit 8f1724a
Showing
2 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
echo "Installing KNative with istio-cni ..." | ||
|
||
echo "Installing KNative with Istio-CNI ..." | ||
|
||
# Retry mechanism for applying Knative manifests | ||
set +e | ||
kustomize build common/knative/knative-serving/base | kubectl apply -f - | ||
for i in {1..5}; do | ||
kustomize build common/knative/knative-serving/base | kubectl apply -f - | ||
if [[ $? -eq 0 ]]; then | ||
break | ||
fi | ||
echo "Retrying in 30 seconds..." | ||
sleep 30 | ||
done | ||
set -e | ||
kustomize build common/knative/knative-serving/base | kubectl apply -f - | ||
|
||
kustomize build common/istio-cni-1-23/cluster-local-gateway/base | kubectl apply -f - | ||
kustomize build common/istio-cni-1-23/kubeflow-istio-resources/base | kubectl apply -f - | ||
|
||
kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=600s \ | ||
kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=300s \ | ||
--field-selector=status.phase!=Succeeded | ||
kubectl patch cm config-domain --patch '{"data":{"example.com":""}}' -n knative-serving |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
echo "Installing KNative ..." | ||
|
||
# Retry mechanism for applying Knative manifests | ||
set +e | ||
kustomize build common/knative/knative-serving/base | kubectl apply -f - | ||
for i in {1..5}; do | ||
kustomize build common/knative/knative-serving/base | kubectl apply -f - | ||
if [[ $? -eq 0 ]]; then | ||
break | ||
fi | ||
echo "Retrying in 30 seconds..." | ||
sleep 30 | ||
done | ||
set -e | ||
kustomize build common/knative/knative-serving/base | kubectl apply -f - | ||
|
||
kustomize build common/istio-1-23/cluster-local-gateway/base | kubectl apply -f - | ||
kustomize build common/istio-1-23/kubeflow-istio-resources/base | kubectl apply -f - | ||
|
||
kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=600s \ | ||
kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=300s \ | ||
--field-selector=status.phase!=Succeeded | ||
kubectl patch cm config-domain --patch '{"data":{"example.com":""}}' -n knative-serving |