load('ext://git_resource', 'git_checkout') load('.tilt/kubebuilder.Tiltfile', 'kubebuilder') allow_k8s_contexts('kind-libresh-dev') default_registry("localhost:5000") update_settings(k8s_upsert_timeout_secs=100) include(".tilt/patch-coredns.Tiltfile") include(".tilt/setup-registry.Tiltfile") include(".tilt/setup-dependencies.Tiltfile") local("kubectl create ns libresh-system || true") include(".tilt/config-minio.Tiltfile") config.define_string_list("to-run", args=True) cfg = config.parse() projects = [ "api", "keydb-operator", "object-storage-operator", "postgres-operator", ] + cfg.get('to-run', []) for project in projects: projectDir = os.path.abspath("../"+project) if not os.path.exists(projectDir): git_checkout('git@forge.liiib.re:indiehost/libre.sh/'+project+'.git#main', projectDir) if project == "api": local_resource("libre.sh CRDs", "cd %s && make install" % projectDir, deps=[os.path.join(projectDir, "**/*.go")], allow_parallel=True) else: kubebuilder(projectDir)