upgrade ci resources version (kubectl, knative, kind, tekton) (#1377)

This commit is contained in:
Jefferson Ramos 2022-10-21 19:17:13 -03:00 committed by GitHub
parent ffa0a4baa7
commit a1b9bcff08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 11 deletions

View File

@ -24,9 +24,10 @@ export TERM="${TERM:-dumb}"
main() {
local kubernetes_version=v1.21.1
local knative_version=v1.3.1
local kourier_version=v1.3.0
local kubernetes_version=v1.24.6
local knative_serving_version=v1.8.0
local knative_eventing_version=v1.8.0
local kourier_version=v1.8.0
local em=$(tput bold)$(tput setaf 2)
local me=$(tput sgr0)
@ -73,12 +74,12 @@ EOF
serving() {
echo "${em}② Knative Serving${me}"
kubectl apply --filename https://github.com/knative/serving/releases/download/knative-$knative_version/serving-crds.yaml
kubectl apply --filename https://github.com/knative/serving/releases/download/knative-$knative_serving_version/serving-crds.yaml
sleep 5
kubectl wait --for=condition=Established --all crd --timeout=5m
curl -L -s https://github.com/knative/serving/releases/download/knative-$knative_version/serving-core.yaml | yq 'del(.spec.template.spec.containers[]?.resources)' -y | yq 'del(.metadata.annotations."knative.dev/example-checksum")' -y | yq | kubectl apply -f -
curl -L -s https://github.com/knative/serving/releases/download/knative-$knative_serving_version/serving-core.yaml | yq 'del(.spec.template.spec.containers[]?.resources)' -y | yq 'del(.metadata.annotations."knative.dev/example-checksum")' -y | yq | kubectl apply -f -
sleep 5
@ -154,22 +155,22 @@ eventing() {
echo "${em}⑤ Knative Eventing${me}"
# CRDs
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-$knative_version/eventing-crds.yaml
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_version/eventing-core.yaml | yq 'del(.spec.template.spec.containers[]?.resources)' -y | yq 'del(.metadata.annotations."knative.dev/example-checksum")' -y | yq | kubectl apply -f -
curl -L -s https://github.com/knative/eventing/releases/download/knative-$knative_eventing_version/eventing-core.yaml | yq 'del(.spec.template.spec.containers[]?.resources)' -y | yq 'del(.metadata.annotations."knative.dev/example-checksum")' -y | yq | 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_version/in-memory-channel.yaml | kubectl apply -f -
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_version/mt-channel-broker.yaml | yq 'del(.spec.template.spec.containers[]?.resources)' -y | yq 'del(.metadata.annotations."knative.dev/example-checksum")' -y | yq | kubectl apply -f -
curl -L -s https://github.com/knative/eventing/releases/download/knative-$knative_eventing_version/mt-channel-broker.yaml | yq 'del(.spec.template.spec.containers[]?.resources)' -y | yq 'del(.metadata.annotations."knative.dev/example-checksum")' -y | yq | kubectl apply -f -
sleep 5
kubectl wait pod --for=condition=Ready -l '!job-name' -n knative-eventing --timeout=5m

View File

@ -12,8 +12,8 @@ set -o pipefail
export TERM="${TERM:-dumb}"
main() {
local kubectl_version=v1.21.1
local kind_version=v0.11.1
local kubectl_version=v1.24.6
local kind_version=v0.16.0
local em=$(tput bold)$(tput setaf 2)
local me=$(tput sgr0)