我正在得到“@local的无存储库定义”。在进水数据库中运行"helm依赖项更新“时。可能是什么原因?我也增加了进水数据库回购。我已经分享了下面的所有日志
/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: rawkode@influxdata.com
- name: gitirabassi
email: giacomo@influxdata.com
- name: aisuko
email: urakiny@gmail.com
- name: naseemkullah
email: naseem@transit.app
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>
我进一步进入了,并试图按下面的方式添加回购,但没有运气。
/home/dbaas/charts/ric-common>helm repo add ric-common '@local'
Error: could not find protocol handler for:
发布于 2022-09-19 18:05:09
根据错误消息,您似乎缺少了该命令。
helm repo add
若要添加依赖关系图表的图表存储库,请执行以下操作。
你能显示Chart.yaml
文件吗?
链接参考资料:
https://stackoverflow.com/questions/73776324
复制相似问题