Skip to content

Commit

Permalink
chore: test cluster versions update (#1819)
Browse files Browse the repository at this point in the history
* test cluster versions update

Updates versions used for the test clutser, and includes a change
to use a specific kind node version rather than the kubernetes version per
Kind's docs.

- knative_serving v1.10.1
- knative_eventing v1.10.1
- contour v1.10.0
- kubectl v1.27.2
- dapr v1.10.0
- helm v3.12.0
- kind v0.19.0
- kind_node v1.27.1

* remove dapr dashboard patch

* dapr init flags resuscitation
  • Loading branch information
lkingland committed Jun 21, 2023
1 parent 278ce6b commit 512ef23
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 35 deletions.
40 changes: 9 additions & 31 deletions hack/allocate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ export TERM="${TERM:-dumb}"

main() {

local kubernetes_version=v1.24.6
local knative_serving_version=v1.8.0
local knative_eventing_version=v1.8.0
local contour_version=v1.8.0
local knative_serving_version=v1.10.1
local knative_eventing_version=v1.10.1
local contour_version=v1.10.0

# Kubernetes Version node image per Kind releases (full hash is suggested):
# https://github.com/kubernetes-sigs/kind/releases
local kind_node_version=v1.27.1@sha256:b7d12ed662b873bd8510879c1846e87c7e676a79fefc93e17b2a52989d3ff42b

# shellcheck disable=SC2155
local em=$(tput bold)$(tput setaf 2)
Expand Down Expand Up @@ -56,7 +59,7 @@ kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
image: kindest/node:${kubernetes_version}
image: kindest/node:${kind_node_version}
extraPortMappings:
- containerPort: 80
hostPort: 80
Expand Down Expand Up @@ -271,37 +274,12 @@ EOF

}

# temporary fix for https://github.com/dapr/cli/issues/1311
fixup_dapr_dashboard_deployment() {
kubectl patch deploy/dapr-dashboard -n dapr-system --patch-file /dev/stdin <<EOF
{
"spec": {
"template": {
"spec": {
"\$setElementOrder/containers": [
{
"name": "dapr-dashboard"
}
],
"containers": [
{
"image": "ghcr.io/dapr/dashboard:0.12.0",
"name": "dapr-dashboard"
}
]
}
}
}
}
EOF
}

dapr_runtime() {
echo "${em}⑦ Dapr${me}"
echo "Version:\\n$(dapr version)"

local dapr_flags=""
if [ "${GITHUB_ACTIONS:-false}" = "true" ]; then
(sleep 10; fixup_dapr_dashboard_deployment)&
dapr_flags="--image-registry=ghcr.io/dapr --log-as-json"
fi

Expand Down
8 changes: 4 additions & 4 deletions hack/binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ set -o pipefail
export TERM="${TERM:-dumb}"

main() {
local kubectl_version=v1.24.6
local kind_version=v0.16.0
local dapr_version=v1.9.1
local helm_version=v3.11.0
local kubectl_version=v1.27.2
local kind_version=v0.19.0
local dapr_version=v1.10.0
local helm_version=v3.12.0
local stern_version=1.25.0

local em=$(tput bold)$(tput setaf 2)
Expand Down

0 comments on commit 512ef23

Please sign in to comment.