tilt icon indicating copy to clipboard operation
tilt copied to clipboard

Support globs in more places in the Tiltfile

Open jazzdan opened this issue 5 years ago • 6 comments

People have wanted to be able to use globs in:

  1. listdir('deploys//*.yaml')
  2. local_resource(deps=['/*_test.go']) # linkerd, e.g.

jazzdan avatar Jan 23 '20 15:01 jazzdan

Can/should this ticket absorb #1818?

maiamcc avatar Jan 23 '20 20:01 maiamcc

The most tedious thing for me was to load each yaml file separately:

k8s_yaml(['apps/app1.yaml', 'apps/app2.yaml', 'apps/app3.yaml'])

Then I figured out it's possible to solve it with listdir:

k8s_yaml(listdir('apps'))

P.S. I've spent a considerable amount of time searching for k8s_yaml globbing or load yamls folder before I discovered this trick so I hope it may be useful for somebody else who ends up here in this issue :)

inech avatar Dec 25 '20 13:12 inech

@inech thanks for adding that workaround!

nicks avatar Dec 28 '20 18:12 nicks

The most tedious thing for me was to load each yaml file separately:

k8s_yaml(['apps/app1.yaml', 'apps/app2.yaml', 'apps/app3.yaml'])

Then I figured out it's possible to solve it with listdir:

k8s_yaml(listdir('apps'))

P.S. I've spent a considerable amount of time searching for k8s_yaml globbing or load yamls folder before I discovered this trick so I hope it may be useful for somebody else who ends up here in this issue :)

Live updating won't work if apps/app4.yaml was added right ?

hulucc avatar Feb 09 '22 03:02 hulucc

any update on this feature request? 🙏

nivnahmias avatar Nov 22 '22 15:11 nivnahmias