lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.48k stars 1.46k forks source link

Failed to get helm release YAMLException: duplicated mapping key #7996

Open djcristi opened 9 months ago

djcristi commented 9 months ago

Lens: 2023.12.80831-latest , happens on old versions also

this error . happens on some deployments that have dupplicate mapping keys in the yaml, so when you go to Helm -> Releases it will not show the details of the release, even if the yaml is working.

for example in my case it has 2 containers in the same deployment, so 2 resources definition. Failed to load release: Failed to get helm release resources: YAMLException: duplicated mapping key (16:5) 13 | release: "grimoire" 14 | app.kubernetes.io/version: "1.0.0" 15 | app.kubernetes.io/managed-by: Helm 16 | app: grimoire ----------^ 17 | chart: java-app-1.0.0 18 | release: "grimoire"

Screenshot 2024-01-04 at 13 39 48
vladelleus commented 8 months ago

I have the same issue: image

twoTimesAgnew commented 7 months ago

Same issue here as well.

stevefan1999-personal commented 7 months ago

This happens after I changed from VXLAN to GENEVE, updating on my existing Cilium Helm release.

jseletz-rave commented 6 months ago

I'm seeing this issue as well

zackery-parkhurst commented 4 months ago

I too have this issue.

I got it when updating a kong helm chart to a newer version.

There are definitely not duplicated keys in the values passed to the chart /:

djcristi commented 3 months ago

such support from Lens. no fix...

timoa commented 2 months ago

I have the same issue, but I don't know if it's because I'm updating the Kube API to upgrade Kube to the latest and the current Helm/Kube cannot read the new API version. I will see if that's the case after the update.

We still have access to the rollback popup with the three dots menu, but we can't see the Helm chart or edit it with Lens Screenshot 2024-07-10 at 10 03 56

Helm is not showing any issues on the Helm chart deployed.