Helm - Невозможно установить зависимости из частного репозитория Github - PullRequest
1 голос
/ 28 апреля 2020

Я пытаюсь установить пакеты из частного репозитория, который я развернул, используя chart-releases, но я не могу это сделать.

Вот что я сделал:

  1. Я создал новый частный репозиторий, добавил к нему образец диаграммы и выполнил следующие команды:
helm package charts/* --destination .deploy
cr upload -o odelucca -r helm-charts -p .deploy -t $MY_TOKEN
Я создал index.yaml с помощью следующей команды:
cr index --config .cr.yaml -t $MY_TOKEN
# My .cr.yaml file:
# owner: odelucca
# git-repo: helm-charts
# package-path: .deploy
# index-path: index.yaml
# charts-repo: https://github.com/odelucca/helm-charts/

Я передал index.yaml в репо

Я добавил удаленный репозиторий Helm с помощью следующей команды:

helm repo add helm-charts https://raw.githubusercontent.com/odelucca/helm-charts/master --username $MY_EMAIL --password $MY_TOKEN
Репо было добавлено, затем я добавил следующую зависимость на локальный график:
dependencies:
- name: serverless-common
  version: 1.0.0
  repository: "@helm-charts"
Теперь я попытался запустить следующее:
helm dep update
Я получаю следующие ошибки:
Hang tight while we grab the latest from your chart repositories...
...Unable to get an update from the "local" chart repository (http://127.0.0.1:8879/charts):
        Get http://127.0.0.1:8879/charts/index.yaml: dial tcp 127.0.0.1:8879: connect: connection refused
...Successfully got an update from the "helm-charts" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete.
Saving 1 charts
Downloading serverless-common from repo https://raw.githubusercontent.com/odelucca/helm-charts/master
Save error occurred:  could not download https://github.com/odelucca/helm-charts/releases/download/serverless-common-1.0.0/serverless-common-1.0.0.tgz: Failed to fetch https://github.com/odelucca/helm-charts/releases/download/serverless-common-1.0.0/serverless-common-1.0.0.tgz : 404 Not Found
Deleting newly downloaded charts, restoring pre-update state
Error: could not download https://github.com/odelucca/helm-charts/releases/download/serverless-common-1.0.0/serverless-common-1.0.0.tgz: Failed to fetch https://github.com/odelucca/helm-charts/releases/download/serverless-common-1.0.0/serverless-common-1.0.0.tgz : 404 Not Found

Кто-нибудь может мне помочь? Я перепробовал много разных подходов, и ни один из них не исправил это

...