tilt-dev / tilt-extensions

Extensions for Tilt
https://tilt.dev/
Apache License 2.0
201 stars 159 forks source link

feat: k8s_yaml_glob extension for loading manifests by glob patterns. #502

Closed gfranxman closed 1 year ago

gfranxman commented 1 year ago

A simple extension to facilitate loading subsets of manifests by directory and filename patterns.

Usage

First load the extension like:

load('ext://k8s_yaml_glob', 'k8s_yaml_glob')

Then use it like this:

# all of the .yaml files in the k8s directory.
k8s_yaml_glob('./k8s/*.yaml')  

or like this:

# all of the dev-*.yaml files in the k8s directory and subdirectories.
k8s_yaml_glob('./k8s/**/dev-*.yaml')