holyfei
0239502781
agent: modify the type of swappiness to u64
...
The type of MemorySwappiness in runtime is uint64, and the type of swappiness in agent is int64,
if we set max uint64 in runtime and pass it to agent, the value will be equal to -1. We should
modify the type of swappiness to u64
Fixes : #4123
Signed-off-by: holyfei <yangfeiyu20092010@163.com >
2022-04-22 16:55:37 +08:00
shuochen0311
27fb490228
agent: add get volume stats handler in agent
...
retrieve the stats of direct-assigned volumes from the guest
Fixes : #3454
Signed-off-by: shuochen0311 <shuo.chen@databricks.com >
2022-03-03 18:57:02 -08:00
bin
734b618c16
agent-ctl: run cargo fmt/clippy in make check
...
Run cargo fmt/clippy in make check and
clear clippy warnings.
Fixes : #3656
Signed-off-by: bin <bin@hyper.sh >
2022-02-14 20:12:57 +08:00
bin
12c37fafc5
trace-forwarder: add make check for Rust
...
Add make check to run cargo fmt/clippy
for Rust projects.
Fixes : #3656
Signed-off-by: bin <bin@hyper.sh >
2022-02-14 20:12:48 +08:00
Shengjing Zhu
905e124b77
docs: fix agent proto file path
...
Fixes : #3391
Signed-off-by: Shengjing Zhu <zhsj@debian.org >
2022-01-06 00:22:49 +08:00
Fupan Li
615224e993
agent: move the protocols to upper libs
...
move the protocols to upper libs thus it can
be shared between agent and other rust runtime.
Depends-on: github.com/kata-containers/tests#4306
Fixes : #3348
Signed-off-by: Fupan Li <fupan.lfp@antgroup.com >
2022-01-05 16:58:06 +08:00
Fupan Li
330e3dcc93
agent: move the oci crate to upper libs
...
Move the oci crate to upper libs thus it can be
shared between agent and other rust runtimes.
Fixes : #3348
Signed-off-by: Fupan Li <fupan.lfp@antgroup.com >
2022-01-05 16:58:06 +08:00
James O. D. Hunt
b1f4e945b3
security: Update rust crate versions
...
Update the rust dependencies that have upstream security fixes. Issues
fixed by this change:
- [`RUSTSEC-2020-0002`](https://rustsec.org/advisories/RUSTSEC-2020-0002 ) (`prost` crate)
- [`RUSTSEC-2020-0036`](https://rustsec.org/advisories/RUSTSEC-2020-0036 ) (`failure` crate)
- [`RUSTSEC-2021-0073`](https://rustsec.org/advisories/RUSTSEC-2021-0073 ) (`prost-types` crate)
- [`RUSTSEC-2021-0119`](https://rustsec.org/advisories/RUSTSEC-2021-0119 ) (`nix` crate)
This change also includes:
- Minor code changes for the new version of `prometheus` for the agent.
- A *downgrade* of the version of the `futures` crate to the (new)
latest version (`0.3.17`) since version `0.3.18` was removed [1].
Fixes : #3296 .
[1] - See https://crates.io/crates/futures/versions
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com >
2021-12-22 07:41:16 +00:00
Peng Tao
7c4263b3e1
src: reorg source directories
...
To make the code directory structure more clear:
└── src
├── agent
├── libs
│ └── logging
├── runtime
├── runtime-rs (to be added)
└── tools
├── agent-ctl
└── trace-forwarder
Fixes : #3204
Signed-off-by: Peng Tao <bergwolf@hyper.sh >
2021-12-14 10:30:08 +08:00