#!/usr/bin/env bash set -euo pipefail root="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" target="${1:-railiance01}" stage="$(mktemp -d)" trap 'rm -rf "$stage"' EXIT # Checksum-verified upstream assets, rendered with the declared CPU requests # (rail-knative substrate/v1.22.0), Kourier ClusterIP and the Envoy pin. "$root/render.sh" "$stage" # CRDs first and separately: serving-core.yaml repeats one of them. ssh "$target" kubectl apply -f - < "$stage/crds.yaml" ssh "$target" kubectl apply -f - < "$stage/serving-core.rendered.yaml" ssh "$target" kubectl wait --for=condition=Available deployment --all -n knative-serving --timeout=300s ssh "$target" kubectl apply -f - < "$stage/kourier.rendered.yaml" ssh "$target" kubectl patch configmap/config-network -n knative-serving --type merge -p '{"data":{"ingress-class":"kourier.ingress.networking.knative.dev"}}' ssh "$target" kubectl patch configmap/config-features -n knative-serving --type merge -p '{"data":{"kubernetes.podspec-init-containers":"enabled"}}' ssh "$target" kubectl wait --for=condition=Available deployment --all -n kourier-system --timeout=300s