Notes
- "sleep 900" means wait for jobs to be completed and pods to be running
#!/usr/bin/env bash
echo "Install v0.14.2"
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.14.2/eventing-crds.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.14.2/eventing-core.yaml
sleep 900
echo "Upgrade to v0.15.4"
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.15.4/eventing-crds.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.15.4/eventing-core.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.15.4/upgrade-to-v0.15.0.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.15.4/storage-version-migration-v0.15.0.yaml
sleep 900
echo "Upgrade to v0.16.2"
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.16.2/pre-install-to-v0.16.0.yaml
sleep 900
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.16.2/eventing-crds.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.16.2/eventing-core.yaml
sleep 900
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.16.2/post-install-to-v0.16.0.yaml
sleep 900
echo "Upgrade to v0.17.9"
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.17.9/eventing-core.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.17.9/eventing-crds.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.17.9/eventing-post-install-jobs.yaml
sleep 900
echo "Upgrade to v0.18.6"
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.18.6/eventing-pre-install-jobs.yaml
sleep 900
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.18.6/eventing-crds.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.18.6/eventing-core.yaml
sleep 900
echo "Upgrade to v0.19.3"
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.19.3/eventing-core.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.19.3/eventing-crds.yaml
kubectl apply -f https://github.com/knative-sandbox/eventing-kafka-broker/releases/download/v0.19.0/eventing-kafka-controller.yaml
kubectl apply -f https://github.com/knative-sandbox/eventing-kafka-broker/releases/download/v0.19.0/eventing-kafka-broker.yaml
kubectl apply -f https://github.com/knative-sandbox/eventing-kafka-broker/releases/download/v0.19.0/eventing-kafka-sink.yaml
After further cleanup of CRD's and complete cleanup (I guess). I managed to reach to
echo "Upgrade to v0.17.9"
without errors.It seems to expect
v1alpha1
in the stored versions for the respective CRD's which kind of points towards them maybe not being deleted and reapplied. I also did use the following for e.g workers & subscriptions since deletion would not work otherwise:Errors