libre.sh/Tiltfile

34 lines
1.1 KiB
Text

load('ext://git_resource', 'git_checkout')
load('.tilt/kubebuilder.Tiltfile', 'kubebuilder')
# Tilt will run in following context (kubectl config get-contexts)
# https://docs.tilt.dev/api.html#api.allow_k8s_contexts
allow_k8s_contexts('kind-libresh-dev')
# Use the Container registry provided by the cluster
default_registry("localhost:5000")
update_settings(k8s_upsert_timeout_secs=10000)
include(".tilt/patch-coredns.Tiltfile")
# Setup a local container registry for images used in our cluster
# and tell Kind to use it https://kind.sigs.k8s.io/docs/user/local-registry/
include(".tilt/setup-registry.Tiltfile")
# Create libresh-system namespace
local("kubectl create ns libresh-system || true")
# Install libresh dependencies in our cluster
include(".tilt/setup-dependencies.Tiltfile")
# Installs cluster-settings secret in libresh-system namespace
include(".tilt/cluster-settings.Tiltfile")
# include(".tilt/cluster-issuer.Tiltfile")
# Installs libresh-config secret in libresh-system namespace
include(".tilt/config-minio.Tiltfile")
include(".tilt/manifests.Tiltfile")
include(".tilt/mkcert.Tiltfile")
kubebuilder(".")