Skip to content

Commit

Permalink
fix: spec/containers
Browse files Browse the repository at this point in the history
  • Loading branch information
azrod committed Feb 13, 2024
1 parent 021604f commit fdf8ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fdf8ec1

Please sign in to comment.