i want to install the pingcap/tidb-operatori thrie...
# 🤖|ask-kapa
g
@microscopic-river-74022 i want to install the pingcap/tidb-operator i thried this, but it does not find the chart
Copy code
yaml
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:
Copy code
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 works
m
Please stand by @gentle-umbrella-55872 as I search the knowledge base. I normally take about 20 seconds or so. :wave:
---------------------- Based on the information provided, it seems like there might be an issue with the way the Helm chart repository is being referenced in your Garden configuration. In your Garden configuration, you're specifying the
repo
and
name
under
chart
as follows:
Copy code
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`:
Copy code
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: ----------------------
message has been deleted
g
yes solution is
Copy code
yaml
kind: Deploy
type: helm
name: tidb
spec:
  chart:
    repo: https://charts.pingcap.org/
    name: tidb-operator
    version: 'v1.5.3'