Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace container to due errors #2359

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hack/allocate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@
echo "${blue}Installing Serving${reset}"
echo "Version: ${knative_serving_version}"

$KUBECTL apply --filename https://github.com/knative/serving/releases/download/knative-$knative_serving_version/serving-crds.yaml

Check failure on line 142 in hack/allocate.sh

View workflow job for this annotation

GitHub Actions / style / suggester / shell

[shellcheck (suggestion)] reported by reviewdog 🐶 Raw Output: hack/allocate.sh:142:- $KUBECTL apply --filename https://github.com/knative/serving/releases/download/knative-$knative_serving_version/serving-crds.yaml hack/allocate.sh:142:+ $KUBECTL apply --filename https://github.com/knative/serving/releases/download/knative-"$knative_serving_version"/serving-crds.yaml

sleep 2
$KUBECTL wait --for=condition=Established --all crd --timeout=5m

curl -L -s https://github.com/knative/serving/releases/download/knative-$knative_serving_version/serving-core.yaml | $KUBECTL apply -f -

Check failure on line 147 in hack/allocate.sh

View workflow job for this annotation

GitHub Actions / style / suggester / shell

[shellcheck (suggestion)] reported by reviewdog 🐶 Raw Output: hack/allocate.sh:147:- curl -L -s https://github.com/knative/serving/releases/download/knative-$knative_serving_version/serving-core.yaml | $KUBECTL apply -f - hack/allocate.sh:147:+ curl -L -s https://github.com/knative/serving/releases/download/knative-"$knative_serving_version"/serving-core.yaml | $KUBECTL apply -f -

sleep 2
$KUBECTL wait pod --for=condition=Ready -l '!job-name' -n knative-serving --timeout=5m
Expand Down Expand Up @@ -236,22 +236,22 @@
echo "Version: ${knative_eventing_version}"

# CRDs
$KUBECTL apply -f https://github.com/knative/eventing/releases/download/knative-$knative_eventing_version/eventing-crds.yaml

Check failure on line 239 in hack/allocate.sh

View workflow job for this annotation

GitHub Actions / style / suggester / shell

[shellcheck (suggestion)] reported by reviewdog 🐶 Raw Output: hack/allocate.sh:239:- $KUBECTL apply -f https://github.com/knative/eventing/releases/download/knative-$knative_eventing_version/eventing-crds.yaml hack/allocate.sh:239:+ $KUBECTL apply -f https://github.com/knative/eventing/releases/download/knative-"$knative_eventing_version"/eventing-crds.yaml
sleep 5
$KUBECTL wait --for=condition=Established --all crd --timeout=5m

# Core
curl -L -s https://github.com/knative/eventing/releases/download/knative-$knative_eventing_version/eventing-core.yaml | $KUBECTL apply -f -

Check failure on line 244 in hack/allocate.sh

View workflow job for this annotation

GitHub Actions / style / suggester / shell

[shellcheck (suggestion)] reported by reviewdog 🐶 Raw Output: hack/allocate.sh:244:- curl -L -s https://github.com/knative/eventing/releases/download/knative-$knative_eventing_version/eventing-core.yaml | $KUBECTL apply -f - hack/allocate.sh:244:+ curl -L -s https://github.com/knative/eventing/releases/download/knative-"$knative_eventing_version"/eventing-core.yaml | $KUBECTL apply -f -
sleep 5
$KUBECTL wait pod --for=condition=Ready -l '!job-name' -n knative-eventing --timeout=5m

# Channel
curl -L -s https://github.com/knative/eventing/releases/download/knative-$knative_eventing_version/in-memory-channel.yaml | $KUBECTL apply -f -

Check failure on line 249 in hack/allocate.sh

View workflow job for this annotation

GitHub Actions / style / suggester / shell

[shellcheck (suggestion)] reported by reviewdog 🐶 Raw Output: hack/allocate.sh:249:- curl -L -s https://github.com/knative/eventing/releases/download/knative-$knative_eventing_version/in-memory-channel.yaml | $KUBECTL apply -f - hack/allocate.sh:249:+ curl -L -s https://github.com/knative/eventing/releases/download/knative-"$knative_eventing_version"/in-memory-channel.yaml | $KUBECTL apply -f -
sleep 5
$KUBECTL wait pod --for=condition=Ready -l '!job-name' -n knative-eventing --timeout=5m

# Broker
curl -L -s https://github.com/knative/eventing/releases/download/knative-$knative_eventing_version/mt-channel-broker.yaml | $KUBECTL apply -f -

Check failure on line 254 in hack/allocate.sh

View workflow job for this annotation

GitHub Actions / style / suggester / shell

[shellcheck (suggestion)] reported by reviewdog 🐶 Raw Output: hack/allocate.sh:254:- curl -L -s https://github.com/knative/eventing/releases/download/knative-$knative_eventing_version/mt-channel-broker.yaml | $KUBECTL apply -f - hack/allocate.sh:254:+ curl -L -s https://github.com/knative/eventing/releases/download/knative-"$knative_eventing_version"/mt-channel-broker.yaml | $KUBECTL apply -f -
sleep 5
$KUBECTL wait pod --for=condition=Ready -l '!job-name' -n knative-eventing --timeout=5m

Expand All @@ -266,7 +266,7 @@
$CONTAINER_ENGINE run -d --restart=always -p "127.0.0.1:50000:5000" --name "func-registry" registry:2
$CONTAINER_ENGINE network connect "kind" "func-registry"
elif [ "$CONTAINER_ENGINE" == "podman" ]; then
$CONTAINER_ENGINE run -d --restart=always -p "127.0.0.1:50000:5000" --net=kind --name "func-registry" registry:2
$CONTAINER_ENGINE run -d --restart=always -p "127.0.0.1:50000:5000" --net=kind --name "func-registry" --replace registry:2
fi

$KUBECTL apply -f - <<EOF
Expand Down
Loading