diff --git a/daprdocs/content/en/operations/hosting/kubernetes/kubernetes-upgrade.md b/daprdocs/content/en/operations/hosting/kubernetes/kubernetes-upgrade.md index af2f1365f..88ceda8e6 100644 --- a/daprdocs/content/en/operations/hosting/kubernetes/kubernetes-upgrade.md +++ b/daprdocs/content/en/operations/hosting/kubernetes/kubernetes-upgrade.md @@ -11,15 +11,15 @@ description: "Follow these steps to upgrade Dapr on Kubernetes and ensure a smoo - [Dapr CLI]({{< ref install-dapr-cli.md >}}) - [Helm 3](https://github.com/helm/helm/releases) (if using Helm) -## Upgrade existing cluster to {{% dapr-latest-version %}} +## Upgrade existing cluster to {{% dapr-latest-version %}}.0 There are two ways to upgrade the Dapr control plane on a Kubernetes cluster using either the Dapr CLI or Helm. ### Dapr CLI -The example below shows how to upgrade to version {{% dapr-latest-version %}}: +The example below shows how to upgrade to version {{% dapr-latest-version %}}.0: ```bash - dapr upgrade -k --runtime-version={{% dapr-latest-version %}} + dapr upgrade -k --runtime-version={{% dapr-latest-version %}}.0 ``` You can provide all the available Helm chart configurations using the Dapr CLI. @@ -43,7 +43,7 @@ To resolve this issue please run the follow command to upgrade the CustomResourc kubectl replace -f https://raw.githubusercontent.com/dapr/dapr/5a15b3e0f093d2d0938b12f144c7047474a290fe/charts/dapr/crds/configuration.yaml ``` -Then proceed with the `dapr upgrade --runtime-version {{% dapr-latest-version %}} -k` command as above. +Then proceed with the `dapr upgrade --runtime-version {{% dapr-latest-version %}}.0 -k` command as above. ### Helm diff --git a/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-upgrade.md b/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-upgrade.md index 0cefbc82c..40cbdb44f 100644 --- a/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-upgrade.md +++ b/daprdocs/content/en/operations/hosting/self-hosted/self-hosted-upgrade.md @@ -30,6 +30,6 @@ description: "Follow these steps to upgrade Dapr in self-hosted mode and ensure ```bash $ dapr --version - CLI version: {{% dapr-latest-version %}} - Runtime version: {{% dapr-latest-version %}} + CLI version: {{% dapr-latest-version version="short" %}} + Runtime version: {{% dapr-latest-version version="short" %}} ``` diff --git a/daprdocs/layouts/shortcodes/dapr-latest-version.html b/daprdocs/layouts/shortcodes/dapr-latest-version.html index e21e727f9..b734e4f5c 100644 --- a/daprdocs/layouts/shortcodes/dapr-latest-version.html +++ b/daprdocs/layouts/shortcodes/dapr-latest-version.html @@ -1 +1,5 @@ -1.4.0 \ No newline at end of file +{{ if .Get "version" }} +1.4 +{{ else }} +1.4.0 +{{ end }} \ No newline at end of file