错误:@local 没有存储库定义。请通过“helm repo add”添加它们

问题描述 投票:0回答:1

我收到“@local 没有存储库定义”。在 influxdb 中运行“helm dependency update”时。可能是什么原因?我也添加了 influxdb 存储库。 我已经分享了下面的所有日志

/home/ravi/influxdb>helm dependency update
Error: no repository definition for @local. Please add them via 'helm repo add'
/home/ravi/influxdb>

/home/ravi/influxdb>helm repo list
NAME        URL                         
influxdata  https://helm.influxdata.com/
/home/ravi/influxdb>
/home/ravi/influxdb>ls
Chart.yaml  files  LICENSE  OWNERS  README.md  requirements.yaml  templates  values.yaml
/home/ravi/influxdb>

/home/ravi/influxdb>helm dependency update
Error: no repository definition for @local. Please add them via 'helm repo add'
/home/ravi/influxdb>

    
/home/ravi/influxdb>tree
.
├── Chart.yaml
├── files
│   └── backup-retention-script.sh
├── LICENSE
├── OWNERS
├── README.md
├── requirements.yaml
├── templates
│   ├── backup-cronjob.yaml
│   ├── backup-pvc.yaml
│   ├── backup-retention-configmap.yaml
│   ├── backup-retention-cronjob.yaml
│   ├── configmap.yaml
│   ├── ingress.yaml
│   ├── init-config.yaml
│   ├── meta-configmap.yaml
│   ├── meta-service.yaml
│   ├── meta-statefulset.yaml
│   ├── NOTES.txt
│   ├── post-install-set-auth.yaml
│   ├── secret.yaml
│   ├── serviceaccount.yaml
│   ├── service.yaml
│   └── statefulset.yaml
└── values.yaml

2 directories, 23 files
/home/ravi/influxdb>

图表文件内容如下:

/home/influxdb>cat Chart.yaml 
apiVersion: v1
name: influxdb
version: 4.9.14
appVersion: 1.8.4
description: Scalable datastore for metrics, events, and real-time analytics.
keywords:
  - influxdb
  - database
  - timeseries
  - influxdata
home: https://www.influxdata.com/time-series-platform/influxdb/
sources:
  - https://github.com/influxdata/influxdb
maintainers:
  - name: rawkode
    email: [email protected]
  - name: gitirabassi
    email: [email protected]
  - name: aisuko
    email: [email protected]
  - name: naseemkullah
    email: [email protected]
engine: gotpl
/home/influxdb>

正如你在上面看到的,我已经添加了回购列表。谁能告诉我为什么我会收到此错误?

/home/influxdb>cat requirements.yaml 
dependencies:
  - name: ric-common
    version: ^3.1.0
    repository: "@local"          ----> what is this? and how to add?

/home/influxdb>

我进一步进入 ric-common 目录并尝试添加如下存储库,但没有运气

/home/dbaas/charts/ric-common>helm repo add ric-common '@local'
Error: could not find protocol handler for: 
kubernetes-helm
1个回答
-1
投票

只有存储库已添加到存储库索引文件中时,您才能使用

@local

根据您的目录树,我没有看到依赖文件夹。
参考链接:
https://helm.sh/docs/chart_best_practices/dependency/#repository-urls

© www.soinside.com 2019 - 2024. All rights reserved.