rancher / fleet

Deploy workloads from Git to large fleets of Kubernetes clusters
https://fleet.rancher.io/
Apache License 2.0
1.51k stars 227 forks source link

Relative paths not work on kustomize resources #616

Open lfdominguez opened 2 years ago

lfdominguez commented 2 years ago

Hi, i have a repo structure like this:

/apps/app1/
  - kustomization.yaml
  - fleet.yaml (this configure kustomize to use current dir)
/common/secrets/gitlab.yaml

kustomization.yaml

resources:
  - ../../common/secrets/gitlab.yaml

But when fleet try to render kustomization get this error

Error while running post render on files: accumulating resources: accumulation err='accumulating resources from '../../common/secrets/gitlab.yaml': '../../common/secrets/gitlab.yaml' doesn't exist': '../../common/secrets/gitlab.yaml' doesn't exist

Is that i can't use common files in the repository and need to copy over all configs the same file?

siredmar commented 2 years ago

This is also a problem i am facing right now. @deniseschannon is there any hint you can give to resolve this?