From 990977719683565052ef22a26a1a4d136053b990 Mon Sep 17 00:00:00 2001 From: kchiranjewee63 Date: Fri, 19 Jul 2024 18:46:28 -0400 Subject: [PATCH] Fix linting issues --- service/webhook/pkg/util/util.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service/webhook/pkg/util/util.go b/service/webhook/pkg/util/util.go index 099aa9c..ad2f1e4 100644 --- a/service/webhook/pkg/util/util.go +++ b/service/webhook/pkg/util/util.go @@ -79,9 +79,9 @@ func CreatePodPatch(pod *corev1.Pod, injectInitContainer bool, agentHttpsApiPort if injectInitContainer { initContainer := corev1.Container{ - Name: "tratteria-agent-init", - Image: "ghcr.io/tratteria/tratteria-agent-init:latest", - Args: []string{"-i", servicePort, "-p", strconv.Itoa(agentInterceptorPort)}, + Name: "tratteria-agent-init", + Image: "ghcr.io/tratteria/tratteria-agent-init:latest", + Args: []string{"-i", servicePort, "-p", strconv.Itoa(agentInterceptorPort)}, SecurityContext: &corev1.SecurityContext{ Capabilities: &corev1.Capabilities{ Add: []corev1.Capability{"NET_ADMIN"}, @@ -158,7 +158,7 @@ func CreatePodPatch(pod *corev1.Pod, injectInitContainer bool, agentHttpsApiPort }, }, }, - Ports: []corev1.ContainerPort{{ContainerPort: 9070}}, + Ports: []corev1.ContainerPort{{ContainerPort: 9070}}, VolumeMounts: []corev1.VolumeMount{ { Name: volumeName,