kots
kots copied to clipboard
BUG: Unable to generate a file diff for release when helm dependency is removed
Steps to reproduce
- Create a local helm chart as follows
apiVersion: v2
name: my-charts
description: Helm charts for my Replicated App
type: application
version: 0.1.0
appVersion: 1.16.0
dependencies:
- name: kibana
version: 7.16.2
repository: https://helm.elastic.co
- name: vault
version: 0.20.0
repository: https://helm.releases.hashicorp.com
- Create a Replicate release that contains
my-chartsas described in Adding a helm chart to a release guide - Install the release
- Remove the vault dependency from the helm chart
- Create another release that contains
my-charts(without vault) - Update to the second release
- Look at the diff
Observed behaviour
failed to diff: failed to kustomize archive charts dir: failed to kustomize /tmp/kotsadm2105596108/overlays/downstreams/this-cluster/charts/my-charts/charts/vault/kustomization.yaml: kustomize /tmp/kotsadm2105596108/overlays/downstreams/this-cluster/charts/my-charts/charts/vault/kustomization.yaml: "2022/09/02 13:51:15 evalsymlink failure on '/tmp/kotsadm2105596108/base/charts/my-charts/charts/vault' : lstat /tmp/kotsadm2105596108/base/charts/my-charts/charts/vault: no such file or directory\nError: accumulating resources: recursed accumulation of path '/tmp/kotsadm2105596108/overlays/midstream/charts/my-charts/charts/vault': accumulating resources: accumulating resources from '../../../../../../base/charts/my-charts/charts/vault': evalsymlink failure on '/tmp/kotsadm2105596108/base/charts/my-charts/charts/vault' : lstat /tmp/kotsadm2105596108/base/charts/my-charts/charts/vault: no such file or directory\n"
Additionally, the error seems to persist for following releases, even when vault is not included in all of them anymore.
Expected behaviour
You should be able to see the diff.
@stefreak Which version KOTS are you using? I believe this might have been fixed in version 1.79.0.
@obfuscurity Thank you for the reply. it was 1.76.1. I upgraded now to v1.85.0 and the error is still visible in the UI for existing versions. I'll keep you posted if it was fixed for updates:)
@stefreak it should be fixed for updates. Existing versions that were created before The upgrade would still have the issue unfortunately.
Yes it is fixed, thanks a lot @sgalsaleh @obfuscurity