Skip to content

Commit

Permalink
fix: add required capabilities for rootless agent
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutsovasilis committed Aug 14, 2024
1 parent b17b172 commit 616ed7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/integration/kubernetes_agent_standalone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,18 @@ func TestKubernetesAgentStandalone(t *testing.T) {
int64Ptr(1000), // elastic-agent uid
nil,
[]corev1.Capability{"ALL"},
[]corev1.Capability{"CHOWN", "SETPCAP"},
[]corev1.Capability{"CHOWN", "SETPCAP", "DAC_READ_SEARCH", "SYS_PTRACE"},
true,
"https://github.com/elastic/elastic-agent/issues/5275",
"",
},
{
"drop ALL add CHOWN, SETPCAP capabilities - rootless agent random uid:gid",
int64Ptr(500),
int64Ptr(500),
[]corev1.Capability{"ALL"},
[]corev1.Capability{"CHOWN", "SETPCAP", "DAC_READ_SEARCH"},
[]corev1.Capability{"CHOWN", "SETPCAP", "DAC_READ_SEARCH", "SYS_PTRACE"},
true,
"https://github.com/elastic/elastic-agent/issues/5275",
"",
},
}

Expand Down

0 comments on commit 616ed7d

Please sign in to comment.