8gears / n8n-helm-chart

A Kubernetes Helm chart for n8n a Workflow Automation Tool. Easily automate tasks across different services.
https://artifacthub.io/packages/helm/open-8gears/n8n
Apache License 2.0
207 stars 102 forks source link

not able to deploy n8n oci chart via argocd #107

Closed kumari-shubham closed 4 months ago

kumari-shubham commented 4 months ago

Discussed in https://github.com/8gears/n8n-helm-chart/discussions/106

Originally posted by **kumari-shubham** July 12, 2024 error: ``` Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = Manifest generation error (cached): `kustomize build /staging/n8n-cluster --enable-helm` failed exit status 1: Error: Error: could not find protocol handler for: : unable to run: 'helm pull --untar --untardir /staging/n8n-cluster/charts --repo 8gears.container-registry.com/library/n8n n8n --version 0.23.1' with env=[HELM_CONFIG_HOME=/tmp/kustomize-helm-1677674532/helm HELM_CACHE_HOME=/tmp/kustomize-helm-1677674532/helm/.cache HELM_DATA_HOME=/tmp/kustomize-helm-1677674532/helm/.data] (is 'helm' installed?): exit status 1 ``` secret in argocd ``` apiVersion: v1 kind: Secret metadata: name: my-oci-repo-creds namespace: argocd labels: argocd.argoproj.io/secret-type: repository stringData: name: n8n-oci-repo url: 8gears.container-registry.com/library/n8n enableOCI: "true" type: helm ForceHttpBasicAuth: "true" ``` using this helm chart ``` helmCharts: - name: n8n releaseName: n8n-cluster repo: 8gears.container-registry.com/library/n8n valuesFile: values.yaml version: 0.23.1 ```
albertollamaso commented 4 months ago

Hi @kumari-shubham

I think you have to change the url in the stringData resulting in something like this:

apiVersion: v1
kind: Secret
metadata:
  name: my-oci-repo-creds
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: repository
stringData:
  name: n8n-oci-repo
  url: 8gears.container-registry.com/library
  enableOCI: true
  type: helm
  ForceHttpBasicAuth: "true"
Vad1mo commented 4 months ago

I'm going ahead and close this issue, please reopen if the issue is not resolved.