Commit f440a21
authored
Update process-agent shouldStayAlive check in Kubernetes environments (#48031)
### What does this PR do?
Reduces the scope of `shouldStayAlive` so that only Linux on K8s could be affected using the `coreagent.ProcessChecksRunInCoreAgent` function which only returns true on Linux. In theory, this function shouldn't even be reached in a Windows K8s scenario since the process-agent container will be deployed any relevant check (NPM/Process). However, it seems appropriate to reduce potential scope since if this occurs, it signals a bigger problem since the checks won't run anywhere else.
### Motivation
Do not potentially keep agents on Windows K8s alive.
### Describe how you validated your changes
e2e
### Additional Notes
Co-authored-by: daniel.tafoya <daniel.tafoya@datadoghq.com>1 parent 42c79d3 commit f440a21
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
326 | | - | |
| 327 | + | |
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
| |||
0 commit comments