Skip to content

Commit

Permalink
docs: update upgrade docs (#8301)
Browse files Browse the repository at this point in the history
(cherry picked from commit a44fa53)
  • Loading branch information
michelle-0808 committed Oct 18, 2024
1 parent 7d5433c commit c3b120b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user_docs/upgrade/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To prevent an Addon from being deleted during a KubeBlocks upgrade via `kbcli` o
Run the command below to view the annotations of Addons.

```bash
kubectl get addon -o json | jq '.items[] | {name: .metadata.name, annotations: .metadata.annotations}'
kubectl get addon -o json | jq '.items[] | {name: .metadata.name, resource_policy: .metadata.annotations["helm.sh/resource-policy"]}'
```

### Manually add an annotation for Addons
Expand All @@ -42,7 +42,7 @@ kubectl annotate addons.extensions.kubeblocks.io {addonName} helm.sh/resource-po
If you want to check whether the annotation for an Addon was added successfully, replace `{addonName}` with the actual Addon name and run the command below.

```bash
kubectl get addon {addonName} -o json | jq '{name: .metadata.name, annotations: .metadata.annotations}'
kubectl get addon {addonName} -o json | jq '{name: .metadata.name, resource_policy: .metadata.annotations["helm.sh/resource-policy"]}'
```

## Fix "cannot patch 'kubeblocks-dataprotection' with kind Deployment" error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ helm repo add kubeblocks-addons https://jihulab.com/api/v4/projects/150246/packa
# Update helm repo
helm repo update
# Search the available Addon versions
helm search repo kubeblocks-addons/{addon-name} --versions --devel
# Update addon version
helm upgrade -i {addon-release-name} kubeblocks-addons/{addon-name} --version x.y.z -n kb-system
```
Expand Down

0 comments on commit c3b120b

Please sign in to comment.