Skip to content

Commit

Permalink
Exclude shell pods from logging to Datadog
Browse files Browse the repository at this point in the history
  • Loading branch information
psi committed Aug 9, 2024
1 parent bbafe5e commit bd4a78f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"os"
"os/exec"
"os/user"
"strconv"
"strings"
"syscall"

Expand Down Expand Up @@ -126,7 +125,7 @@ func buildShellKubectlArgs(podName string, image string, istioEnabled bool, serv
overrides.Metadata.Name = ""
overrides.Metadata.GenerateName = podName + "-"
overrides.Metadata.Annotations = map[string]string{
"sidecar.istio.io/inject": strconv.FormatBool(istioEnabled),
"ad.datadoghq.com/exclude": "true",
}

if serviceaccount != "" {
Expand Down

0 comments on commit bd4a78f

Please sign in to comment.