Skip to content

Commit aef152c

Browse files
test: print install job logs (#1591)
1 parent 9e03a70 commit aef152c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Tiltfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ helm_resource(
8787
## also nri-bundle that is expected by some tests.
8888
local_resource(
8989
'local-child-chart-upload',
90+
allow_parallel=True,
9091
cmd="""
9192
rm -rf local/helm-charts-tmp &&
9293
git clone --depth=1 https://github.com/newrelic/helm-charts --branch """ + feature_branch +""" local/helm-charts-tmp &&
@@ -142,6 +143,21 @@ if license_key != '':
142143
if cluster != '':
143144
ac_flags.append('--set=global.cluster='+cluster)
144145

146+
147+
local_resource(
148+
'wait-install-job',
149+
allow_parallel=True,
150+
cmd="kubectl wait --for=create --timeout=200s job/ac-agent-control-install-job",
151+
resource_deps=['local-child-chart-upload'],
152+
)
153+
154+
local_resource(
155+
'log-install-job',
156+
allow_parallel=True,
157+
serve_cmd="while true ; do kubectl logs -f job/ac-agent-control-install-job || sleep 1; continue ; done",
158+
resource_deps=['wait-install-job'],
159+
)
160+
145161
#### Installs charts
146162
helm_resource(
147163
'agent-control',

0 commit comments

Comments
 (0)