-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tiltfile
18 lines (16 loc) · 1.19 KB
/
Tiltfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Install kyverno from upstream using Helm. If you change the version here, remember to change it in the Makefile too.
load('ext://helm_remote', 'helm_remote')
helm_remote(chart='kyverno', repo_url='https://kyverno.github.io/kyverno/', namespace='kyverno', create_namespace=True, set=['image.repository=ghcr.io/giantswarm/kyverno', 'image.tag=v1.5.0-rc1-142-gf09f3c8a', 'initImage.tag=v1.5.1', 'installCRDs=true'])
local_resource('generate-helm-chart', 'make generate', deps=['policies'], labels=['generate-policies'])
k8s_yaml(helm('./helm/policies-common'))
# Add task to create a CR and see the mutated result.
template_list = [ item for item in listdir("./e2e") ]
template_list = [ template for template in template_list if os.path.basename(template).endswith("yaml") ]
for template in template_list:
local_resource(
name = os.path.basename(template),
cmd = "kubectl --context {} delete --ignore-not-found=true -f {} && kubectl --context {} apply -f {} && kubectl --context {} get -f {} -o yaml".format(k8s_context(), template, k8s_context(), template, k8s_context(), template),
auto_init = False,
trigger_mode = TRIGGER_MODE_MANUAL,
labels = [ "quick-e2e" ]
)