kots icon indicating copy to clipboard operation
kots copied to clipboard

BUG: Unable to generate a file diff for release when helm dependency is removed

Open stefreak opened this issue 3 years ago • 1 comments

Steps to reproduce

  1. 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
  1. Create a Replicate release that contains my-charts as described in Adding a helm chart to a release guide
  2. Install the release
  3. Remove the vault dependency from the helm chart
  4. Create another release that contains my-charts (without vault)
  5. Update to the second release
  6. 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 avatar Sep 02 '22 14:09 stefreak

@stefreak Which version KOTS are you using? I believe this might have been fixed in version 1.79.0.

obfuscurity avatar Sep 21 '22 19:09 obfuscurity

@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 avatar Sep 22 '22 09:09 stefreak

@stefreak it should be fixed for updates. Existing versions that were created before The upgrade would still have the issue unfortunately.

sgalsaleh avatar Sep 29 '22 14:09 sgalsaleh

Yes it is fixed, thanks a lot @sgalsaleh @obfuscurity

stefreak avatar Oct 14 '22 10:10 stefreak