tilt
tilt copied to clipboard
Support globs in more places in the Tiltfile
People have wanted to be able to use globs in:
- listdir('deploys//*.yaml')
- local_resource(deps=['/*_test.go']) # linkerd, e.g.
Can/should this ticket absorb #1818?
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 thanks for adding that workaround!
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 globbingorload yamls folderbefore 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 ?
any update on this feature request? 🙏