-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Hello, I've created this ticket because we are running into some issues when trying to run a flux-local diff on a helmRelease that uses a helm-chart from our own private Gitlab-repo hosted on gitlab.com
The command we try to run is: flux-local --log-level DEBUG diff hr <helmrelease-name> -n <namespace> --path gcp-toolkit/clusters/development/ --branch-orig rdgcp-183-deploy-flux
After running that command we see the error below:
flux_local.exceptions.HelmException: Command 'helm template <helmrelease-name> flux-system-<helmrepo-name>/<helmchart-name> --namespace <namespace> --repository-cache /tmp/tmpre7syfz8 --repository-config /tmp/tmpii474bk2/repository-config.yaml --registry-config /tmp/tmp5qvh56qy.json --skip-crds --skip-tests --version 1.2.0 --values /tmp/tmpii474bk2/values.yaml' failed with return code 1
Error: no cached repo found. (try 'helm repo update'): open /tmp/tmpre7syfz8/flux-system-<helmchart-name>-index.yaml: no such file or directory
flux-local error: Command 'helm template <helmrelease-name> flux-system-<helmrepo-name>/<helmchart-name> --namespace <namespace> --repository-cache /tmp/tmpre7syfz8 --repository-config /tmp/tmpii474bk2/repository-config.yaml --registry-config /tmp/tmp5qvh56qy.json --skip-crds --skip-tests --version 1.2.0 --values /tmp/tmpii474bk2/values.yaml' failed with return code 1
Error: no cached repo found. (try 'helm repo update'): open /tmp/tmpre7syfz8/flux-system-<helmchart-name>-index.yaml: no such file or directory
Our helmrelease and helmRepo looks as follows:
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: <helmrelease-name>
namespace: <namespace>
spec:
interval: 2m
chart:
spec:
chart: <helm-chart name>
version: '1.2.0'
sourceRef:
kind: HelmRepository
name: <helmrepo name>
namespace: flux-system
interval: 10m
values:
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: <helmrepo-name>
namespace: flux-system
spec:
interval: 5m
url: https://gitlab.com/api/v4/projects/<project-id>/packages/helm/stable
secretRef:
name: gitlab-deploy-helm-dev-token
I've added the helm-repo to my local helm installation, so I would think that it should be able to pull the helm-chart.
Hoping that you are able to help us out.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels