Flux: Cannot load helm chart from repo

Created on 15 Mar 2019  ·  7Comments  ·  Source: fluxcd/flux

I give up. Please tell me how to load a helm chart for gloo. I have tried a dozen different combinations of repo and name to no avail.

Spec:
  Chart:
    Name:        charts/gloo
    Repository:  https://storage.googleapis.com/solo-public-helm
    Version:     0.10.5
...
Status:
  Conditions:
    Last Transition Time:  2019-03-15T06:51:29Z
    Message:               chart download failed: chart "charts/gloo" version "0.10.5" not found in https://storage.googleapis.com/solo-public-helm repository
    Reason:                RepoFetchFailed
    Status:                False
    Type:                  ChartFetched

https://storage.googleapis.com/solo-public-helm
shows

<ListBucketResult xmlns="http://doc.s3.amazonaws.com/2006-03-01">
<Name>solo-public-helm</Name>
<Prefix/>
<Marker/>
<IsTruncated>false</IsTruncated>
<Contents>
<Key>charts/gloo-0.10.0.tgz</Key>
<Generation>1551800383979939</Generation>
<MetaGeneration>1</MetaGeneration>
<LastModified>2019-03-05T15:39:43.979Z</LastModified>
<ETag>"c0a167fe2ecb3eef17979ccbd0b40b9b"</ETag>
<Size>7407</Size>
</Contents>
<Contents>
<Key>charts/gloo-0.10.1.tgz</Key>
<Generation>1551846351568894</Generation>
<MetaGeneration>1</MetaGeneration>
<LastModified>2019-03-06T04:25:51.568Z</LastModified>
<ETag>"9d5dcfdd8ae32c370da688feb5c9aabe"</ETag>
<Size>7528</Size>
</Contents>
<Contents>
<Key>charts/gloo-0.10.2.tgz</Key>
<Generation>1551964580634677</Generation>
<MetaGeneration>1</MetaGeneration>
<LastModified>2019-03-07T13:16:20.634Z</LastModified>
<ETag>"d2148a887c2ce3fe4b842c5f22d26f19"</ETag>
<Size>7527</Size>
</Contents>
<Contents>
<Key>charts/gloo-0.10.3.tgz</Key>
<Generation>1552085690849789</Generation>
<MetaGeneration>1</MetaGeneration>
<LastModified>2019-03-08T22:54:50.849Z</LastModified>
<ETag>"956b3d0b391e9a5a2d50be2ebe8004cb"</ETag>
<Size>7528</Size>
</Contents>
<Contents>
<Key>charts/gloo-0.10.4.tgz</Key>
<Generation>1552321149740377</Generation>
<MetaGeneration>1</MetaGeneration>
<LastModified>2019-03-11T16:19:09.740Z</LastModified>
<ETag>"b9cc6de626bcd0ff8e3659c5c2cdcce2"</ETag>
<Size>7527</Size>
</Contents>
<Contents>
<Key>charts/gloo-0.10.5.tgz</Key>
<Generation>1552585030749458</Generation>
<MetaGeneration>1</MetaGeneration>
<LastModified>2019-03-14T17:37:10.749Z</LastModified>
<ETag>"da3625323828ecd697d071ca94b9efb9"</ETag>
<Size>7528</Size>
</Contents>
...
</ListBucketResult>
helm question

All 7 comments

Hi @derrickburns
Add your repo first helm repo add solo https://storage.googleapis.com/solo-public-helm
Check that repo is added to list helm repo list
Then install gloo chart helm install solo/gloo

The following HelmRelease format should work.

---
apiVersion: flux.weave.works/v1beta1
kind: HelmRelease
metadata:
  name: gloo
spec:
  chart:
    repository: https://storage.googleapis.com/solo-public-helm/
    name: gloo
    version: 0.10.5
  values: {}

I tried that helmrelease format. It did not work.
On Mar 15, 2019, 7:08 AM -0700, Hidde Beydals notifications@github.com, wrote:

The following HelmRelease format should work.

apiVersion: flux.weave.works/v1beta1
kind: HelmRelease
metadata:
name: gloo
namespace: default
spec:
chart:
repository: https://storage.googleapis.com/solo-public-helm/
name: gloo
version: 0.10.5
values: {}

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

What version of the operator are you running? I did an install of the exact above without any issues on 0.6.0.

❯ kubectl describe deploy/flux-helm-operator | grep Image
    Image:      quay.io/weaveworks/helm-operator:0.6.0
❯ kubectl logs -f deploy/flux-helm-operator
[...]
ts=2019-03-15T15:00:35.945740423Z caller=operator.go:172 component=operator debug="PROCESSING item [\"default/gloo\"]"
ts=2019-03-15T15:00:35.945914413Z caller=operator.go:229 component=operator debug="Starting to sync cache key default/gloo"
ts=2019-03-15T15:00:36.034815993Z caller=release.go:139 component=release info="processing release default-gloo" action=CREATE options="{DryRun:false ReuseName:false}" timeout=300s
ts=2019-03-15T15:00:37.098601383Z caller=operator.go:214 component=operator info="Successfully synced 'default/gloo'"
ts=2019-03-15T15:00:37.099087923Z caller=operator.go:169 component=operator debug="Processing next work queue job ..."
I0315 15:00:37.099674       7 event.go:221] Event(v1.ObjectReference{Kind:"HelmRelease", Namespace:"default", Name:"gloo", UID:"1695009d-4733-11e9-b03e-0c6cfff32383", APIVersion:"flux.weave.works/v1beta1", ResourceVersion:"560856", FieldPath:""}): type: 'Normal' reason: 'ChartSynced' Chart managed by HelmRelease processed successfully
❯ helm list -a
NAME            REVISION    UPDATED                     STATUS      CHART           APP VERSION NAMESPACE
default-gloo    1           Fri Mar 15 16:00:36 2019    DEPLOYED    gloo-0.10.5                 default  

I stand corrected.

The difference is (frustratingly) important. You have a trailing slash on the repo name. I did not. The install fails without the trailing slash. Please either modify the code to be more liberal or document this clearly as a requirement.

I stand corrected.

Great to hear!

Please either modify the code to be more liberal or document this clearly as a requirement.

This has already been done in #1735 but hasn't made it to an official release yet.

Thank you for your assistance!

Was this page helpful?
0 / 5 - 0 ratings