Repository navigation
Expand file tree
/
Copy pathTaskfile.e2e.yml
More file actions
426 lines (394 loc) · 17.6 KB
/
Copy pathTaskfile.e2e.yml
File metadata and controls
426 lines (394 loc) · 17.6 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
vars:
CTX: '{{.CTX | default "k3d-audit-pass-through-e2e"}}'
CLUSTER_NAME:
sh: |
ctx='{{.CTX}}'
ctx="${ctx#k3d-}"
ctx="${ctx#kind-}"
printf '%s' "${ctx}"
DOCKER: '{{.DOCKER | default "docker"}}'
FLUX: '{{.FLUX | default "flux"}}'
HELM: '{{.HELM | default "helm"}}'
K3D: '{{.K3D | default "k3d"}}'
KUBECTL: '{{.KUBECTL | default "kubectl"}}'
E2E_PROXY_IMAGE: '{{.E2E_PROXY_IMAGE | default "apiservice-audit-proxy:e2e-local"}}'
E2E_PROXY_IMAGE_REPOSITORY:
sh: |
ref='{{.E2E_PROXY_IMAGE}}'
repo="${ref%:*}"
tag="${ref##*:}"
if [ "${repo}" = "${tag}" ]; then
printf '%s' "${ref}"
else
printf '%s' "${repo}"
fi
E2E_PROXY_IMAGE_TAG:
sh: |
ref='{{.E2E_PROXY_IMAGE}}'
repo="${ref%:*}"
tag="${ref##*:}"
if [ "${repo}" = "${tag}" ]; then
printf 'latest'
else
printf '%s' "${tag}"
fi
E2E_PROXY_NAMESPACE: '{{.E2E_PROXY_NAMESPACE | default "wardle"}}'
E2E_RELEASE_NAME: '{{.E2E_RELEASE_NAME | default "apiservice-audit-proxy"}}'
E2E_BACKEND_DEPLOYMENT: '{{.E2E_BACKEND_DEPLOYMENT | default "api-backend"}}'
E2E_PROXY_VALUES_FILE: '{{.E2E_PROXY_VALUES_FILE | default "test/e2e/values/proxy-cert-manager.yaml"}}'
FLUX_NAMESPACE: '{{.FLUX_NAMESPACE | default "flux-system"}}'
FLUX_WAIT_TIMEOUT: '{{.FLUX_WAIT_TIMEOUT | default "900s"}}'
STAMPS_DIR: .stamps/e2e/{{.CLUSTER_NAME}}
AUDIT_ASSET_SOURCE_DIR: test/e2e/cluster/audit
AUDIT_ASSET_DIR: '{{.STAMPS_DIR}}/audit'
AUDIT_POLICY_SOURCE: '{{.AUDIT_ASSET_SOURCE_DIR}}/policy.yaml'
AUDIT_WEBHOOK_BOOTSTRAP_SOURCE: '{{.AUDIT_ASSET_SOURCE_DIR}}/webhook-config.yaml'
AUDIT_POLICY_PATH: '{{.AUDIT_ASSET_DIR}}/policy.yaml'
AUDIT_WEBHOOK_CONFIG_PATH: '{{.AUDIT_ASSET_DIR}}/webhook-config.yaml'
WEBHOOK_TESTER_LOCAL_PORT: '{{.WEBHOOK_TESTER_LOCAL_PORT | default "18090"}}'
WEBHOOK_TESTER_SERVICE_PORT: '{{.WEBHOOK_TESTER_SERVICE_PORT | default "8080"}}'
WEBHOOK_TESTER_BASE_URL: 'http://127.0.0.1:{{.WEBHOOK_TESTER_LOCAL_PORT}}'
tasks:
e2e:doctor:
desc: Verify the local machine can run the standalone e2e flow
cmds:
- bash hack/e2e/check-docker.sh
- "{{.K3D}} version"
- "{{.FLUX}} --version"
- "{{.HELM}} version --short"
- "{{.KUBECTL}} version --client=true"
e2e:cluster-up:
desc: Create or reuse the local k3d cluster for this project
cmds:
- task: e2e:_cluster-ready
e2e:flux-bootstrap:
desc: Install Flux and the shared add-ons used by the standalone prototype
cmds:
- task: e2e:_services-ready
e2e:build-image:
desc: Build the proxy image used for local e2e (no-op when E2E_PROXY_IMAGE is externally provided)
status:
- '[ "{{.E2E_PROXY_IMAGE}}" != "apiservice-audit-proxy:e2e-local" ]'
cmds:
- task: e2e:_proxy-image-built
e2e:load-image:
desc: Load the proxy image into the k3d cluster
cmds:
- task: e2e:build-image
- task: e2e:_proxy-image-loaded
e2e:deploy-proxy:
desc: Install the sample backend, pass-through proxy, and webhook-tester with cert-manager-backed TLS
cmds:
- task: e2e:_proxy-with-webhook-tester-installed
e2e:prepare:
desc: Build, load, and install the full standalone smoke environment
cmds:
- task: e2e:deploy-proxy
e2e:test-taskfile:
desc: Validate Taskfile build behavior (no cluster required; needs Docker)
cmds:
- go test -tags=e2e -run 'TestBuildImageTask' -count=1 -v ./test/e2e
e2e:test-smoke:
desc: Run the standalone k3d smoke scenario against the aggregated API path
deps:
- e2e:portforward-webhook-tester
cmds:
- "CTX={{.CTX}} WEBHOOK_TESTER_BASE_URL={{.WEBHOOK_TESTER_BASE_URL}} go test -tags=e2e -run 'TestSmoke' -count=1 -v ./test/e2e"
e2e:test-smoke-backend-ca:
desc: Run the smoke scenario with backend TLS validated by an explicit CA bundle
cmds:
# E2E_PROXY_VALUES_FILE must be exported into a fresh task process: a
# `vars:` override on a dep does not propagate to that dep's own nested
# dependencies, so the deploy step would otherwise use the default values.
- E2E_PROXY_VALUES_FILE=test/e2e/values/proxy-cert-manager-backend-ca.yaml task e2e:portforward-webhook-tester
- "CTX={{.CTX}} WEBHOOK_TESTER_BASE_URL={{.WEBHOOK_TESTER_BASE_URL}} go test -tags=e2e -run 'TestSmoke' -count=1 -v ./test/e2e"
e2e:test-watch-streams:
desc: Prove long aggregated API watches survive beyond the proxy write-timeout regression window
deps:
- e2e:portforward-webhook-tester
cmds:
- "CTX={{.CTX}} WEBHOOK_TESTER_BASE_URL={{.WEBHOOK_TESTER_BASE_URL}} go test -tags=e2e -run 'TestWatchStaysOpenThroughProxy' -count=1 -v ./test/e2e"
e2e:test-metrics-scrape:
desc: Prove /metrics is scrapeable in-cluster and Kubernetes-aware stream classification is correct (list=false, watch=true)
deps:
- e2e:_proxy-with-webhook-tester-installed
cmds:
- "CTX={{.CTX}} E2E_PROXY_NAMESPACE={{.E2E_PROXY_NAMESPACE}} E2E_RELEASE_NAME={{.E2E_RELEASE_NAME}} go test -tags=e2e -run 'TestProxyMetricsScrapeAfterWatch' -count=1 -v ./test/e2e"
e2e:test-impersonation:
desc: |
Run the impersonation-mode scenarios (audited write, non-audited
passthrough, apiserver-injected extras) with operator-supplied RBAC.
cmds:
# E2E_PROXY_VALUES_FILE must be exported into a fresh task process: a
# `vars:` override on a dep does not propagate to that dep's own nested
# dependencies, so the deploy step would otherwise use the default values.
- E2E_PROXY_VALUES_FILE=test/e2e/values/proxy-impersonation.yaml task e2e:portforward-webhook-tester
- |
CTX={{.CTX}} WEBHOOK_TESTER_BASE_URL={{.WEBHOOK_TESTER_BASE_URL}} \
go test -tags=e2e \
-run 'TestImpersonationWrite|TestImpersonationPassthrough|TestImpersonationApiserverExtras' \
-count=1 -v ./test/e2e
e2e:test-impersonation-no-rbac:
desc: |
Run the impersonation-mode missing-RBAC scenario: a write must fail with a
clean 403 cannot-impersonate error proxied from the backend.
cmds:
- E2E_PROXY_VALUES_FILE=test/e2e/values/proxy-impersonation-no-rbac.yaml task e2e:portforward-webhook-tester
- |
CTX={{.CTX}} WEBHOOK_TESTER_BASE_URL={{.WEBHOOK_TESTER_BASE_URL}} \
go test -tags=e2e -run 'TestImpersonationRBACMissing' -count=1 -v ./test/e2e
e2e:test-requestheader-trust:
desc: |
Verify inbound requestheader trust is sourced from the cluster ConfigMap:
no CA Secret is installed, an audited write succeeds, and deleting the
kube-system auth-reader RoleBinding fails the proxy's startup.
deps:
- e2e:portforward-webhook-tester
cmds:
- "CTX={{.CTX}} WEBHOOK_TESTER_BASE_URL={{.WEBHOOK_TESTER_BASE_URL}} go test -tags=e2e -run 'TestRequestHeaderTrustFromCluster' -count=1 -v ./test/e2e"
e2e:test-image-refresh:
desc: Validate image load → pod digest chain (cluster required; runs after smoke)
cmds:
- "CTX={{.CTX}} E2E_PROXY_NAMESPACE={{.E2E_PROXY_NAMESPACE}} go test -tags=e2e -run 'TestImageRefresh' -count=1 -v ./test/e2e"
e2e:test-smoke-full:
desc: Run the full e2e suite in order (smoke first, then image-refresh)
cmds:
- task: e2e:test-smoke
- task: e2e:test-image-refresh
e2e:test-all:
desc: |
Run every e2e suite this repository ships, in the order CI expects.
One target so CI can call a single command; if you want a faster local
iteration, invoke a sub-target directly (e.g. e2e:test-watch-streams).
cmds:
- task: e2e:test-smoke-full
- task: e2e:test-watch-streams
- task: e2e:test-metrics-scrape
- task: e2e:test-smoke-backend-ca
- task: e2e:test-audit-gap
- task: e2e:test-delete-collection
- task: e2e:test-requestheader-trust
- task: e2e:test-impersonation
- task: e2e:test-impersonation-no-rbac
e2e:deploy-with-webhook-tester:
desc: Deploy the Helm-managed sample backend, proxy, and webhook-tester
cmds:
- task: e2e:_proxy-with-webhook-tester-installed
e2e:portforward-webhook-tester:
desc: Ensure a local port-forward to webhook-tester is running
deps:
- e2e:deploy-with-webhook-tester
status:
- 'curl -fsS {{.WEBHOOK_TESTER_BASE_URL}}/healthz >/dev/null 2>&1'
cmds:
- |
export CTX="{{.CTX}}"
export KUBECTL="{{.KUBECTL}}"
export STAMPS_DIR="{{.STAMPS_DIR}}"
export WEBHOOK_TESTER_NAMESPACE="{{.E2E_PROXY_NAMESPACE}}"
export E2E_RELEASE_NAME="{{.E2E_RELEASE_NAME}}"
export WEBHOOK_TESTER_LOCAL_PORT="{{.WEBHOOK_TESTER_LOCAL_PORT}}"
export WEBHOOK_TESTER_SERVICE_PORT="{{.WEBHOOK_TESTER_SERVICE_PORT}}"
bash hack/e2e/ensure-webhook-tester-port-forward.sh
e2e:portforward-stop:
desc: Stop the local webhook-tester port-forward
cmds:
- |
pid_file="{{.STAMPS_DIR}}/webhook-tester-{{.WEBHOOK_TESTER_LOCAL_PORT}}.pid"
if [ -f "${pid_file}" ]; then
pid="$(tr -d '\n\r' < "${pid_file}" || true)"
if [ -n "${pid}" ]; then
kill "${pid}" 2>/dev/null || true
fi
rm -f "${pid_file}"
fi
pkill -f "kubectl.*port-forward.*svc/{{.E2E_RELEASE_NAME}}-test-webhook-receiver.*{{.WEBHOOK_TESTER_LOCAL_PORT}}:{{.WEBHOOK_TESTER_SERVICE_PORT}}" 2>/dev/null || true
e2e:test-audit-gap:
desc: |
Assert the audit gap for aggregated API requests.
Lane A (kube-apiserver native) must have a hollow event; Lane B (proxy) must have the full event.
Requires: cluster created with audit webhook baked in + webhookTester.enabled=true.
deps:
- e2e:portforward-webhook-tester
cmds:
- |
CTX={{.CTX}} WEBHOOK_TESTER_BASE_URL={{.WEBHOOK_TESTER_BASE_URL}} \
go test -tags=e2e -run 'TestAggregatedAPIAuditGap' -count=1 -v ./test/e2e
e2e:test-delete-collection:
desc: |
Assert the proxy emits a complete audit event for a collection delete
(the deletecollection verb) of an aggregated resource.
Requires: cluster created with audit webhook baked in + webhookTester.enabled=true.
deps:
- e2e:portforward-webhook-tester
cmds:
- |
CTX={{.CTX}} WEBHOOK_TESTER_BASE_URL={{.WEBHOOK_TESTER_BASE_URL}} \
go test -tags=e2e -run 'TestAggregatedAPIDeleteCollectionAudit' -count=1 -v ./test/e2e
e2e:cluster-down:
desc: Delete the standalone k3d cluster
cmds:
- "{{.K3D}} cluster delete {{.CLUSTER_NAME}}"
- rm -rf {{.STAMPS_DIR}}
e2e:_cluster-ready:
method: timestamp
sources:
- test/e2e/cluster/start-cluster.sh
- '{{.AUDIT_POLICY_SOURCE}}'
- '{{.AUDIT_WEBHOOK_BOOTSTRAP_SOURCE}}'
generates:
- '{{.STAMPS_DIR}}/ready'
- '{{.AUDIT_POLICY_PATH}}'
- '{{.AUDIT_WEBHOOK_CONFIG_PATH}}'
status:
- '{{.K3D}} cluster list -o json 2>/dev/null | grep -q "\"name\":\"{{.CLUSTER_NAME}}\""'
- '{{.KUBECTL}} --context {{.CTX}} --request-timeout=10s get ns >/dev/null 2>&1'
cmds:
- task: e2e:doctor
- mkdir -p {{.STAMPS_DIR}} {{.AUDIT_ASSET_DIR}}
- cp {{.AUDIT_POLICY_SOURCE}} {{.AUDIT_POLICY_PATH}}
- cp {{.AUDIT_WEBHOOK_BOOTSTRAP_SOURCE}} {{.AUDIT_WEBHOOK_CONFIG_PATH}}
- |
export CTX="{{.CTX}}"
export CLUSTER_NAME="{{.CLUSTER_NAME}}"
export K3D="{{.K3D}}"
export KUBECTL="{{.KUBECTL}}"
export AUDIT_DIR_REL="{{.AUDIT_ASSET_DIR}}"
bash test/e2e/cluster/start-cluster.sh
- touch {{.STAMPS_DIR}}/ready
e2e:_flux-installed:
method: timestamp
sources:
- '{{.STAMPS_DIR}}/ready'
generates:
- '{{.STAMPS_DIR}}/flux.installed'
status:
- '{{.KUBECTL}} --context {{.CTX}} -n {{.FLUX_NAMESPACE}} get deploy/source-controller deploy/kustomize-controller deploy/helm-controller >/dev/null 2>&1'
cmds:
- task: e2e:_cluster-ready
- "{{.FLUX}} install --context {{.CTX}} --namespace {{.FLUX_NAMESPACE}}"
- touch {{.STAMPS_DIR}}/flux.installed
e2e:_flux-setup-ready:
method: timestamp
sources:
- '{{.STAMPS_DIR}}/flux.installed'
- test/e2e/setup/flux/**
- hack/e2e/wait-flux-resources.sh
generates:
- '{{.STAMPS_DIR}}/flux-setup.ready'
status:
- '{{.KUBECTL}} --context {{.CTX}} get helmreleases.helm.toolkit.fluxcd.io --all-namespaces >/dev/null 2>&1'
- '{{.KUBECTL}} --context {{.CTX}} get kustomizations.kustomize.toolkit.fluxcd.io --all-namespaces >/dev/null 2>&1'
cmds:
- task: e2e:_flux-installed
- "{{.KUBECTL}} --context {{.CTX}} apply -k test/e2e/setup/flux"
- |
export CTX="{{.CTX}}"
export FLUX_SERVICES_WAIT_TIMEOUT="{{.FLUX_WAIT_TIMEOUT}}"
bash hack/e2e/wait-flux-resources.sh
- touch {{.STAMPS_DIR}}/flux-setup.ready
e2e:_services-ready:
method: timestamp
sources:
- '{{.STAMPS_DIR}}/flux-setup.ready'
- test/e2e/setup/manifests/kustomization.yaml
- test/e2e/setup/manifests/prometheus/**
generates:
- '{{.STAMPS_DIR}}/services.ready'
status:
- '{{.KUBECTL}} --context {{.CTX}} wait --for=condition=Established crd/prometheuses.monitoring.coreos.com crd/servicemonitors.monitoring.coreos.com --timeout=10s >/dev/null 2>&1'
- '{{.KUBECTL}} --context {{.CTX}} -n prometheus-operator get prometheus/prometheus-e2e >/dev/null 2>&1'
cmds:
- task: e2e:_flux-setup-ready
- |
{{.KUBECTL}} --context {{.CTX}} wait --for=condition=Established \
crd/prometheuses.monitoring.coreos.com \
crd/servicemonitors.monitoring.coreos.com \
--timeout=180s
{{.KUBECTL}} --context {{.CTX}} apply -k test/e2e/setup/manifests
- touch {{.STAMPS_DIR}}/services.ready
e2e:_proxy-image-built:
method: checksum
sources:
- Dockerfile
- cmd/**/*.go
- pkg/**/*.go
- go.mod
- go.sum
- exclude: cmd/**/*_test.go
- exclude: pkg/**/*_test.go
generates:
- '{{.STAMPS_DIR}}/proxy-image-build.id'
status:
- '{{.DOCKER}} image inspect "{{.E2E_PROXY_IMAGE}}" >/dev/null 2>&1'
- test "$(cat "{{.STAMPS_DIR}}/proxy-image-build.id" 2>/dev/null)" = "$({{.DOCKER}} image inspect --format='{{"{{"}}.Id{{"}}"}}' "{{.E2E_PROXY_IMAGE}}")"
cmds:
- mkdir -p {{.STAMPS_DIR}}
- "{{.DOCKER}} build -t {{.E2E_PROXY_IMAGE}} ."
- '{{.DOCKER}} image inspect --format=''{{"{{"}}.Id{{"}}"}}'' "{{.E2E_PROXY_IMAGE}}" > {{.STAMPS_DIR}}/proxy-image-build.id'
e2e:_proxy-image-loaded:
method: timestamp
sources:
- Dockerfile
- cmd/**/*.go
- pkg/**/*.go
- go.mod
- go.sum
- exclude: cmd/**/*_test.go
- exclude: pkg/**/*_test.go
generates:
- '{{.STAMPS_DIR}}/proxy-image.stamp'
status:
- '{{.DOCKER}} image inspect "{{.E2E_PROXY_IMAGE}}" >/dev/null 2>&1'
- case "$(cat "{{.STAMPS_DIR}}/proxy-image.stamp" 2>/dev/null)" in "{{.E2E_PROXY_IMAGE}}"@*) exit 0 ;; *) exit 1 ;; esac
- '{{.K3D}} cluster list -o json 2>/dev/null | grep -q "\"name\":\"{{.CLUSTER_NAME}}\""'
cmds:
- task: e2e:_cluster-ready
- mkdir -p {{.STAMPS_DIR}}
- |
export CLUSTER_NAME="{{.CLUSTER_NAME}}"
export IMAGE="{{.E2E_PROXY_IMAGE}}"
export K3D="{{.K3D}}"
export DOCKER="{{.DOCKER}}"
export STAMP_FILE="{{.STAMPS_DIR}}/proxy-image.stamp"
bash hack/e2e/load-image.sh
- rm -f {{.STAMPS_DIR}}/proxy-test-webhook-receiver.installed
e2e:_proxy-with-webhook-tester-installed:
method: timestamp
sources:
- '{{.STAMPS_DIR}}/proxy-image.stamp'
- '{{.STAMPS_DIR}}/services.ready'
- '{{.E2E_PROXY_VALUES_FILE}}'
- charts/apiservice-audit-proxy/**
generates:
- '{{.STAMPS_DIR}}/proxy-test-webhook-receiver.installed'
status:
- '{{.KUBECTL}} --context {{.CTX}} -n {{.E2E_PROXY_NAMESPACE}} rollout status deploy/{{.E2E_RELEASE_NAME}} --timeout=10s >/dev/null 2>&1'
- '{{.KUBECTL}} --context {{.CTX}} -n {{.E2E_PROXY_NAMESPACE}} rollout status deploy/{{.E2E_BACKEND_DEPLOYMENT}} --timeout=10s >/dev/null 2>&1'
- '{{.KUBECTL}} --context {{.CTX}} -n {{.E2E_PROXY_NAMESPACE}} rollout status deploy/{{.E2E_RELEASE_NAME}}-test-webhook-receiver --timeout=10s >/dev/null 2>&1'
- |
expected="$(printf 'mode=test-webhook-receiver\nimage=%s\nvalues=%s\n' "$(cat "{{.STAMPS_DIR}}/proxy-image.stamp" 2>/dev/null)" "{{.E2E_PROXY_VALUES_FILE}}")"
test "$(cat "{{.STAMPS_DIR}}/proxy-test-webhook-receiver.installed" 2>/dev/null)" = "${expected}"
cmds:
- task: e2e:load-image
- task: e2e:_services-ready
- |
{{.HELM}} upgrade --install {{.E2E_RELEASE_NAME}} ./charts/apiservice-audit-proxy \
--kube-context {{.CTX}} \
--namespace {{.E2E_PROXY_NAMESPACE}} \
--create-namespace \
--values {{.E2E_PROXY_VALUES_FILE}} \
--set image.repository={{.E2E_PROXY_IMAGE_REPOSITORY}} \
--set image.tag={{.E2E_PROXY_IMAGE_TAG}} \
--set audit.testWebhookReceiver.enabled=true
- "{{.KUBECTL}} --context {{.CTX}} -n {{.E2E_PROXY_NAMESPACE}} rollout status deploy/{{.E2E_BACKEND_DEPLOYMENT}} --timeout=180s"
- "{{.KUBECTL}} --context {{.CTX}} -n {{.E2E_PROXY_NAMESPACE}} rollout status deploy/{{.E2E_RELEASE_NAME}}-test-webhook-receiver --timeout=180s"
- "{{.KUBECTL}} --context {{.CTX}} -n {{.E2E_PROXY_NAMESPACE}} rollout restart deploy/{{.E2E_RELEASE_NAME}}"
- "{{.KUBECTL}} --context {{.CTX}} -n {{.E2E_PROXY_NAMESPACE}} rollout status deploy/{{.E2E_RELEASE_NAME}} --timeout=180s"
- |
printf 'mode=test-webhook-receiver\nimage=%s\nvalues=%s\n' \
"$(<"{{.STAMPS_DIR}}/proxy-image.stamp")" \
"{{.E2E_PROXY_VALUES_FILE}}" \
> {{.STAMPS_DIR}}/proxy-test-webhook-receiver.installed