Skip to content

Commit

Permalink
fix v1 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-taf committed Mar 21, 2024
1 parent 2a7c79b commit 494f3ff
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apis/datadoghq/v2alpha1/datadogagent_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ type LogCollectionFeatureConfig struct {
OpenFilesLimit *int32 `json:"openFilesLimit,omitempty"`
}

// ProcessesRunInCoreAgent is used to allow certain process agent features to run in the core agent.
// ProcessesRunInCoreAgent is used to allow certain process agent features to run in the core agent (experimental).
// Applies to Live Process Collection, Live Container Collection, and Process Discovery.
type ProcessesRunInCoreAgent struct {
// Enabled enables running parent feature in core agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ func Test_liveProcessFeature_ConfigureV1(t *testing.T) {
MountPath: apicommon.PasswdMountPath,
ReadOnly: true,
},
{
Name: apicommon.CgroupsVolumeName,
MountPath: apicommon.CgroupsMountPath,
ReadOnly: true,
},
{
Name: apicommon.ProcdirVolumeName,
MountPath: apicommon.ProcdirMountPath,
ReadOnly: true,
},
}

processAgentMounts := mgr.VolumeMountMgr.VolumeMountsByC[apicommonv1.ProcessAgentContainerName]
Expand All @@ -61,6 +71,22 @@ func Test_liveProcessFeature_ConfigureV1(t *testing.T) {
},
},
},
{
Name: apicommon.CgroupsVolumeName,
VolumeSource: corev1.VolumeSource{
HostPath: &corev1.HostPathVolumeSource{
Path: apicommon.CgroupsHostPath,
},
},
},
{
Name: apicommon.ProcdirVolumeName,
VolumeSource: corev1.VolumeSource{
HostPath: &corev1.HostPathVolumeSource{
Path: apicommon.ProcdirHostPath,
},
},
},
}

volumes := mgr.VolumeMgr.Volumes
Expand Down

0 comments on commit 494f3ff

Please sign in to comment.