Skip to content

Report descriptive error for invalid chart repository URLs / index data #654

Open
@jacobbaek

Description

Hi,

I gonna use private helm chart repository that is working on GitLab CE.
So i made helmrepository and helmrelease following this guideline.
but as you can see, below error message printed for helmrepsitory resource that i made.

jacob@dubaek:~/workspace/flux$ kubectl get helmrepository -n ingress-nginx
NAME                 URL                                                       READY   STATUS                                                                                        AGE
ingress-helm-chart   https://gitlab.example.com/anyone/ingress-cache-helm   False   error converting YAML to JSON: yaml: line 3: mapping values are not allowed in this context   11h

I already did run flux bootstrap and there is running the source-controller (ghcr.io/fluxcd/source-controller:v0.21.2) at the cluster.

You can check the YAML file that was used to create helmrepository.

---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
  name: ingress-helm-chart
  namespace: ingress-nginx
spec:
  interval: 1m
  url: https://gitlab.example.com/anyone/ingress-cache-helm
  secretRef: 
    name: exampledotcom-ca

I can not find what makes syntax error or invalid line.
if i applied upper YAML file without "secretRef" line, it succeed.
So i think the "secretRef" has something wrong, but I could not find any problem.

Can anyone give some advice or if this issue turn out to be error, please fix it.

Metadata

Assignees

No one assigned

    Labels

    area/helmHelm related issues and pull requestsenhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions