Skip to content

Commit

Permalink
Fix const definition
Browse files Browse the repository at this point in the history
  • Loading branch information
gjulianm committed Feb 4, 2025
1 parent e72b12d commit 1ede209
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion api/datadoghq/v2alpha1/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ const (
KubeletAgentCAPath = "/var/run/host-kubelet-ca.crt"
KubeletCAVolumeName = "kubelet-ca"
KubeletPodResourcesVolumeName = "kubelet-pod-resources"
DefaultKubeletPodResourcesSocket = "/var/lib/kubelet/pod-resources/kubelet.sock"

APMSocketName = "apm.socket"

Expand Down
4 changes: 2 additions & 2 deletions internal/controller/datadogagent/override/global_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
const (
hostCAPath = "/host/ca/path/ca.crt"
agentCAPath = "/agent/ca/path/ca.crt"
podResourcesSocket = v2alpha1.DefaultKubeletPodResourcesSocket
podResourcesSocket = "/var/lib/kubelet/pod-resources/kubelet.sock"
dockerSocketPath = "/docker/socket/path/docker.sock"
secretBackendCommand = "foo.sh"
secretBackendArgs = "bar baz"
Expand Down Expand Up @@ -307,7 +307,7 @@ func getExpectedEnvVars(addedEnvVars ...*corev1.EnvVar) []*corev1.EnvVar {
if !containsPodResourcesEnvVar {
defaultEnvVars = append(defaultEnvVars, &corev1.EnvVar{
Name: v2alpha1.DDKubernetesPodResourcesSocket,
Value: v2alpha1.DefaultKubeletPodResourcesSocket,
Value: podResourcesSocket,
})
}

Expand Down

0 comments on commit 1ede209

Please sign in to comment.