Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kchiranjewee63 committed Jul 19, 2024
1 parent e7ad3e3 commit 9909777
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions service/webhook/pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9909777

Please sign in to comment.