From fdf8ec1d76da68896dee9c02a5573f3c11d23046 Mon Sep 17 00:00:00 2001 From: Mickael Stanislas Date: Tue, 13 Feb 2024 19:55:14 +0100 Subject: [PATCH] fix: spec/containers --- cmd/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/webhook.go b/cmd/webhook.go index b5d9540..aab5fa4 100644 --- a/cmd/webhook.go +++ b/cmd/webhook.go @@ -149,7 +149,7 @@ func updateAnnotation(target map[string]string, added map[string]string) (patch func createPatch(pod *corev1.Pod, config *Config, annotations map[string]string) ([]byte, error) { var patch []patchOperation - patch = append(patch, addEnvironnement(pod.Spec.Containers, config.Env, "/spec/container")...) + patch = append(patch, addEnvironnement(pod.Spec.Containers, config.Env, "/spec/containers")...) patch = append(patch, updateAnnotation(pod.Annotations, annotations)...) return json.Marshal(patch)