tilt-dev / tilt

Define your dev environment as code. For microservice apps on Kubernetes.
https://tilt.dev/
Apache License 2.0
7.65k stars 302 forks source link

Support globs in more places in the Tiltfile #2815

Open jazzdan opened 4 years ago

jazzdan commented 4 years ago

People have wanted to be able to use globs in:

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

maiamcc commented 4 years ago

Can/should this ticket absorb #1818?

inech commented 3 years ago

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 :)

nicks commented 3 years ago

@inech thanks for adding that workaround!

hulucc commented 2 years ago

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 ?

nivnahmias commented 1 year ago

any update on this feature request? 🙏

bgfernandes commented 2 months ago

Would love to have this feature as well, any updates?