0

I have created a sample helmfile.yaml and content of it is below.

releases:
  - name: loki-multitenant
    chart: ./loki
    namespace: default
    values:
      - loki-distributed:
          querier:
            replicas: 3
          loki:
            auth_enabled: true
            storageConfig:
              boltdb_shipper:
                shared_store: gcs
              gcs:
                bucket_name: loki-store-jr
            schemaConfig:
              configs:
                - from: 2020-07-01
                  object_store: gcs
            compactor:
              shared_store: gcs

And the contents of loki-multitenant chart folder loki. loki\Chart.yaml

apiVersion: v2
name: loki
description: A Helm chart for Kubernetes

type: application
version: 0.0.1

appVersion: "v0.0.1"

dependencies:
  - name: ingress-nginx
    version: 4.1.4
    repository: https://kubernetes.github.io/ingress-nginx

  - name: loki-distributed
    repository: https://grafana.github.io/helm-charts
    version: ^0.48.4

And some dummy content in templates, main part is for sub dependency charts.

When I run: helmfile sync

Building dependency release=loki-multitenant, chart=loki
in ./helmfile.yaml: [building dependencies of local chart: command "/usr/local/bin/helm" exited with non-zero status:

PATH:
  /usr/local/bin/helm

ARGS:
  0: helm (4 bytes)
  1: dependency (10 bytes)
  2: build (5 bytes)
  3: loki (4 bytes)

ERROR:
  exit status 1

EXIT STATUS
  1

STDERR:
  Error: no repository definition for https://kubernetes.github.io/ingress-nginx, https://grafana.github.io/helm-charts. Please add the missing repos via 'helm repo add'

COMBINED OUTPUT:
  Error: no repository definition for https://kubernetes.github.io/ingress-nginx, https://grafana.github.io/helm-charts. Please add the missing repos via 'helm repo add']

So I tried running

helm dependency update loki/

Which downloaded tar.gz files to loki/charts folder.

loki/charts$ ls
ingress-nginx-4.1.4.tgz  loki-distributed-0.48.6.tgz

But still the helmfile sync gives the same error. Please suggest how to fix this.

Kalel
  • 134
  • 1
  • 4
  • 16

0 Answers0