Open audrey-mux opened 4 days ago
Looks like there are some core chunks of the app that are not aware of multiple sources. Might not be too difficult to take into account. 🤞
For some reason I remember this was implemented, at least partially, but that doesn't seem to be true. OK, I built on the work that @sl1pm4t did and got a working branch. I don't have any multi source applications to test on yet, but if you want a sneak preview, you can use the image at ghcr.io/zapier/kubechecks:0.0.0-pr298, and report back if it works as intended. Thanks for the bug report!
i'll give it a shot
I tried that build out in my test instance with a new multi-source app - no crash, but i'm seeing permissions errors ( even with a rollback to 1.8.0 ), so i think i can tentatively say its working. but i want to figure out this permission issue before i'd say totally fixed
Permission issue fixed
given that this is multi-source the helm chart itself is pulling from a remote repo (generally, we've pull them into our monorepo and haven't had an issue), it looks like Kubechecks isn't able to pull this from this remote helm repo
5:19PM INF cloning repo branchName=1.4.3 event_id=50 repo=repo-name-redacted
5:19PM INF cloning git repo branch=1.4.3 clone-url=https://audrey-mux@grafana.github.io/helm-charts temp-dir=/tmp/kubechecks-repo-489429976
5:19PM DBG building command args=["clone","https://audrey-mux@grafana.github.io/helm-charts","/tmp/kubechecks-repo-489429976","--branch","1.4.3"]
5:19PM DBG getting cluster clusterName= clusterServer=https://kubernetes.default.svc
5:19PM DBG generating diff for application... name=cluster-bootstrap-apps
5:19PM DBG for appname cluster-bootstrap-apps, server dest says: https://kubernetes.default.svc and name dest says:
5:19PM ERR unable to clone repository, Cloning into '/tmp/kubechecks-repo-489429976'...
fatal: repository 'https://grafana.github.io/helm-charts/' not found
error="exit status 128"
5:19PM ERR Unable to clone repository error="failed to clone repo: failed to clone repository: exit status 128" app_name=<redacted>-beyla app_path= event_id=50 repo=repo-name-redacted workerID=15
and the appset sources
block:
sources:
- repoURL: https://grafana.github.io/helm-charts
chart: beyla
targetRevision: 1.4.3
helm:
releaseName: beyla
valueFiles:
- $values/monitoring/grafana-cloud/beyla/values.yaml
- repoURL: https://github.com/org/repo.git
targetRevision: master
ref: values
it looks like it think this is a git repo vs a helm repo
I also tried moving the chart to a git repo instead with a different outcome
sources:
- repoURL: https://github.com/org/helmchart.git
path: tools/helm/beyla
targetRevision: main
helm:
releaseName: beyla
valueFiles:
- $values/monitoring/grafana-cloud/beyla/values.yaml
- repoURL: https://github.com/org/valuesfile.git
targetRevision: master
ref: values
I had to drop the values file in the helmchart repo otherwise kubechecks couldn't find it -
from what it looks like in the logs, the first repo (helmchart) is checked out and diffed, and then the second repo (valuesfile) is checked out but fails to get the helm chart since it doesn't exist at that path.
Ran across a panic when trying to process a multi-source app. We just started using those and this is the second one so far, the first one just produced a warning w/o the panic