Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing helm release from remote kustomization.yaml #2068

Open
emilhdiaz opened this issue Jan 27, 2022 · 0 comments
Open

Error installing helm release from remote kustomization.yaml #2068

emilhdiaz opened this issue Jan 27, 2022 · 0 comments

Comments

@emilhdiaz
Copy link

emilhdiaz commented Jan 27, 2022

With Kubernetes Operators becoming ubiquitous, many Helm charts now require CRDs to be pre-installed before the chart itself can be installed. For example, the aws-load-balancer-controller requires several CRDs to be installed: https://github.com/aws/eks-charts/tree/master/stable/aws-load-balancer-controller#helm-installation

The CRDs in this case are provided as a Kustomize project under a subdirectory of the github project: https://github.com/aws/eks-charts/tree/master/stable/aws-load-balancer-controller/crds

Which I am attempting to install with the following helmfile.yaml:

repositories:
  - name: eks
    url: https://aws.github.io/eks-charts

releases:
  - name: aws-load-balancer-controller-crds
    chart: git::https://github.com/aws/eks-charts.git@stable/aws-load-balancer-controller/crds
    disableValidation: true

  - name: aws-load-balancer-controller
    chart: eks/aws-load-balancer-controller
    version: ~1.3.3
    namespace: kube-system
    values:
      - values.yaml.gotmpl

However the applying the above helmfile, produces the following error coming from kustomize:

COMMAND:
  kustomize -o /var/folders/7r/rnj46l1j4dg30w3r14ljkxpr0000gn/T/chartify3744656772/aws-load-balancer-controller-crds/templates/kustomized.yaml build --load-restrictor=LoadRestrictionsNone --enable-alpha-plugins /var/folders/7r/rnj46l1j4dg30w3r14ljkxpr0000gn/T/chartify3744656772/aws-load-balancer-controller-crds

OUTPUT:
  Error: accumulating resources: accumulation err='accumulating resources from '/aws-load-balancer-controller/.helmfile/cache/aws-load-balancer-controller-crds/https_github_com_aws_eks-charts_git/stable/aws-load-balancer-controller/crds': read /aws-load-balancer-controller/.helmfile/cache/aws-load-balancer-controller-crds/https_github_com_aws_eks-charts_git/stable/aws-load-balancer-controller/crds: is a directory': git cmd = '/usr/local/bin/git fetch --depth=1 origin HEAD': exit status 128]

NOTE:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant