gentle-umbrella-55872
05/18/2024, 6:13 PMyaml
kind: Deploy
type: helm
name: tidb
spec:
chart:
repo: https://charts.pingcap.org/
name: pingcap/tidb-operator
version: 'v1.5.3'
the regular commands are
helm repo add pingcap https://charts.pingcap.org/
helm install --namespace tidb-admin tidb-operator pingcap/tidb-operator --version v1.5.3
Here is the error:
sh
Command "/…/darwin-arm64/helm --kube-context docker-desktop --namespace democracy-development-democracy-local install tidb pingcap/tidb-operator --version v1.5.3 --repo https://charts.pingcap.org/ --namespace democracy-development-democracy-local --timeout 300s --values /private/var/folders/wk/8_0fg09137l9h100n31mh9f40000gn/T/a8fba9f0e1b366a9262a9da255c2ddb0" failed with code 1:
Error: INSTALLATION FAILED: chart "pingcap/tidb-operator" version "v1.5.3" not found in https://charts.pingcap.org/ repository
when i add the repo by myself via the first regular command and run the script without --repo it worksmicroscopic-river-74022
05/18/2024, 6:13 PMmicroscopic-river-74022
05/18/2024, 6:14 PMrepo
and name
under chart
as follows:
yaml
spec:
chart:
repo: <https://charts.pingcap.org/>
name: pingcap/tidb-operator
version: 'v1.5.3'
However, according to the Garden documentation (), the repo
should be the repository URL to fetch the chart from, and the name
should be a valid Helm chart name or URI.
In your case, the name
is specified as pingcap/tidb-operator
, which seems to be a combination of the repository name and the chart name. This might be causing the issue.
You could try changing the name
to just `tidb-operator`:
yaml
spec:
chart:
repo: <https://charts.pingcap.org/>
name: tidb-operator
version: 'v1.5.3'
This aligns with the regular Helm commands you provided, where pingcap
is added as a repository and tidb-operator
is used as the chart name.
If this doesn't resolve the issue, it might be worth checking if the chart is available in the specified repository and the version 'v1.5.3' exists. You can do this by manually browsing the repository or using Helm commands to fetch the chart information.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------microscopic-river-74022
05/18/2024, 6:14 PMgentle-umbrella-55872
05/18/2024, 6:16 PMyaml
kind: Deploy
type: helm
name: tidb
spec:
chart:
repo: https://charts.pingcap.org/
name: tidb-operator
version: 'v1.5.3'