Commit 4e43065
authored
feat: fix agent for distroless and have scr name in flag/history/log (#65)
feat(agent): change to a secondary chroot_exec so it happens in a different process
Due to distroless we can't do a subprocess.run(chroot /root [cmd])
So instead we call a separate python process to chroot inside of. If
we do the chroot inside controller the chroot last for the rest of the
process which causes issues with file management and other things that
happen after the call.
feat(agent): allow passing of root dirs for flag/history/log
For GKE we need to be able to control where flag and history files go
so that they persist between reboots when using the ContainerOS which
only as a few specific stateful directories that are writeable.
feat(operator): set env vars for package/interrupt that have SCR name
In order to disambiguate between the same package in different SCRs
the operator will add the SCR name to the root directories passed to the
agent.
feat: add test automation for full integration test between operator and agent1 parent 32c5a06 commit 4e43065
File tree
17 files changed
+844
-220
lines changed- agent/skyhook-agent
- src/skyhook_agent
- tests
- chart
- containers
- k8s-tests/operator-agent
- interrupt
- simple
- operator
- internal/controller
17 files changed
+844
-220
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments