From 2e7939383f469bdb91eb95874fd64379a40f7151 Mon Sep 17 00:00:00 2001 From: Gergely Brautigam <182850+Skarlso@users.noreply.github.com> Date: Mon, 18 Mar 2024 15:12:45 +0100 Subject: [PATCH] fix: correct position for security context --- Tiltfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tiltfile b/Tiltfile index 65fcebb..2a4aeec 100644 --- a/Tiltfile +++ b/Tiltfile @@ -14,7 +14,7 @@ install = kustomize('config/default') objects = decode_yaml_stream(install) for o in objects: if o.get('kind') == 'Deployment' and o.get('metadata').get('name') == 'git-controller': - o['spec']['template']['spec']['securityContext']['runAsNonRoot'] = False + o['spec']['template']['spec']['containers'][0]['securityContext']['runAsNonRoot'] = False break updated_install = encode_yaml_stream(objects)