Fix formatting issue in crd-upgrade-123.md (#15873)

* Fix formatting issue in crd-upgrade-123.md

* update crd-upgrade-123.sh

* fix shell code rendering issue
This commit is contained in:
Andrii Holovin 2024-11-07 11:56:26 +02:00 committed by GitHub
parent e43548f9e7
commit 649df232d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 21 additions and 21 deletions

View File

@ -7,13 +7,13 @@ If upgrading CRDs via Helm from an Istio release 1.23 or older, you may encounte
You can resolve this with a one-time migration using the following `kubectl` commands:
{{< text syntax=bash snip_id=adopt_legacy_crds >}}
$ for crd in $(kubectl get crds -l chart=istio -o name && kubectl get crds -l app.kubernetes.io/part-of=istio -o name)
$ do
$ kubectl label "$crd" "app.kubernetes.io/managed-by=Helm"
$ kubectl annotate "$crd" "meta.helm.sh/release-name=istio-base" # replace with actual Helm release name, if different from the documentation default
$ kubectl annotate "$crd" "meta.helm.sh/release-namespace=istio-system" # replace with actual istio namespace
$ done
{{< /text >}}
{{< text syntax=bash snip_id=adopt_legacy_crds >}}
$ for crd in $(kubectl get crds -l chart=istio -o name && kubectl get crds -l app.kubernetes.io/part-of=istio -o name)
$ do
$ kubectl label "$crd" "app.kubernetes.io/managed-by=Helm"
$ kubectl annotate "$crd" "meta.helm.sh/release-name=istio-base" # replace with actual Helm release name, if different from the documentation default
$ kubectl annotate "$crd" "meta.helm.sh/release-namespace=istio-system" # replace with actual istio namespace
$ done
{{< /text >}}
{{< /warning >}}

View File

@ -9,11 +9,11 @@
{{< text syntax=bash snip_id=adopt_legacy_crds >}}
$ for crd in $(kubectl get crds -l chart=istio -o name && kubectl get crds -l app.kubernetes.io/part-of=istio -o name)
do
kubectl label "$crd" "app.kubernetes.io/managed-by=Helm"
kubectl annotate "$crd" "meta.helm.sh/release-name=istio-base" # замініть на актуальну назву релізу Helm, якщо вона відрізняється від стандартної у документації.
kubectl annotate "$crd" "meta.helm.sh/release-namespace=istio-system" # замінити на актуальний простір імен istio
done
$ do
$ kubectl label "$crd" "app.kubernetes.io/managed-by=Helm"
$ kubectl annotate "$crd" "meta.helm.sh/release-name=istio-base" # замініть на актуальну назву релізу Helm, якщо вона відрізняється від стандартної у документації.
$ kubectl annotate "$crd" "meta.helm.sh/release-namespace=istio-system" # замінити на актуальний простір імен istio
$ done
{{< /text >}}
{{< /warning >}}

View File

@ -7,13 +7,13 @@
您可以使用以下 `kubectl` 命令通过一次性迁移解决此问题:
{{< text syntax=bash snip_id=adopt_legacy_crds >}}
$ for crd in $(kubectl get crds -l chart=istio -o name && kubectl get crds -l app.kubernetes.io/part-of=istio -o name)
$ do
$ kubectl label "$crd" "app.kubernetes.io/managed-by=Helm"
$ kubectl annotate "$crd" "meta.helm.sh/release-name=istio-base" # 如果与文档默认值不同,请用实际的 Helm 版本名称替换
$ kubectl annotate "$crd" "meta.helm.sh/release-namespace=istio-system" # 用实际的 istio 命名空间替换
$ done
{{< /text >}}
{{< text syntax=bash snip_id=adopt_legacy_crds >}}
$ for crd in $(kubectl get crds -l chart=istio -o name && kubectl get crds -l app.kubernetes.io/part-of=istio -o name)
$ do
$ kubectl label "$crd" "app.kubernetes.io/managed-by=Helm"
$ kubectl annotate "$crd" "meta.helm.sh/release-name=istio-base" # 如果与文档默认值不同,请用实际的 Helm 版本名称替换
$ kubectl annotate "$crd" "meta.helm.sh/release-namespace=istio-system" # 用实际的 istio 命名空间替换
$ done
{{< /text >}}
{{< /warning >}}