-
Notifications
You must be signed in to change notification settings - Fork 11
/
Tiltfile
44 lines (32 loc) · 1.08 KB
/
Tiltfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- mode: Python -*-
#### Config
# This env var is automatically added by the e2e action.
namespace = os.getenv('NAMESPACE','newrelic')
chart_values_file = 'local/super-agent-tilt.yml'
#### Build the final Docker image with the binary.
docker_build(
'tilt.local/operator-dev',
context='.',
dockerfile='./Dockerfile'
)
#### Set-up charts
load('ext://helm_resource', 'helm_repo','helm_resource')
load('ext://git_resource', 'git_checkout')
update_dependencies = True
chart = 'charts/k8s-agents-operator'
deps=[chart]
flags_helm = ['--create-namespace','--version=>=0.0.0-beta','--set=super-agent-deployment.image.imagePullPolicy=Always','--values=' + chart_values_file]
#### Installs charts
helm_resource(
'operator',
chart,
deps=deps, # re-deploy chart if modified locally
namespace=namespace,
release_name='operator',
update_dependencies=False,
flags=flags_helm,
image_deps=['tilt.local/operator-dev'],
image_keys=[('controllerManager.manager.image.repository', 'controllerManager.manager.image.version')],
resource_deps=[]
)
update_settings(k8s_upsert_timeout_secs=150)