Skip to content

Commit

Permalink
remove dapr dashboard patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lkingland committed Jun 19, 2023
1 parent 3ff676d commit e797c94
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions hack/allocate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,43 +271,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}"

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

# Install Dapr Runtime
# shellcheck disable=SC2086
dapr init ${dapr_flags} --kubernetes --wait
dapr init --kubernetes --wait

# Enalble Redis Persistence and Pub/Sub
#
Expand Down

0 comments on commit e797c94

Please sign in to comment.