fleet icon indicating copy to clipboard operation
fleet copied to clipboard

kustomize dir doesn't limit collection of resouces to the output of kustomize

Open Jackbennett opened this issue 3 years ago • 0 comments

I have an example that's supposed to run the kustomize from a specific folder, but the output to the bundle from the run includes all files in the repo and pre-kustomized files as well as the kustomized resouces.

Created an example with comments in the README: https://github.com/Jackbennett/fleet-examples/tree/test-fleet/single-cluster/kustomize-multi-path

rancher/fleet#697 is also related because if gitrepo path could be set to the path i'm using fleet.yaml to set kustomize.dir then I wouldn't even need a fleet.yaml. An example is also included.

Worth noting is this example is a repo structure already in use with other tooling, it's not from scratch. Fixing this would help fleet adoption.

Thanks. I'm also learning Go if you want to point me in a direction to help.

edit: rancher 2.5-head and fleet 0.3.5

Jackbennett avatar Mar 17 '22 12:03 Jackbennett