Arron Wang
deee3cf4a2
oci: Make device type optional in LinuxDeviceCgroup
...
Follow the oci spec to compatiable with config file generated
by other implementation:
6969a0a09a/specs-go/config.go (L401)
Fixes : #3860
Signed-off-by: Arron Wang <arron.wang@intel.com >
2022-03-15 20:36:16 +08:00
stevenhorsman
75e2e5ab46
CCv0: Merge main into CCv0 branch
...
Merge remote-tracking branch 'upstream/main' into CCv0
Fixes : #3843
Signed-off-by: stevenhorsman <steven@uk.ibm.com >
2022-03-07 11:09:12 +00:00
Feng Wang
4e00c2377c
agent: add grpc interface for stat and resize operations
...
Add GetVolumeStats and ResizeVolume APIs for the runtime to query stat
and resize fs in the guest.
Fixes : #3454
Signed-off-by: Feng Wang <feng.wang@databricks.com >
2022-03-03 18:57:02 -08:00
stevenhorsman
7159a35d20
agent: Move proto
...
- Move image proto to reflect main's refactoring of
protos into src/libs
Signed-off-by: stevenhorsman <steven@uk.ibm.com >
2022-02-14 17:08:09 +00:00
stevenhorsman
9f3b2aaf6a
CCv0: Merge main into CCv0 branch
...
Merge remote-tracking branch 'upstream/main' into CCv0
Fixes : #3573
Signed-off-by: stevenhorsman <steven@uk.ibm.com >
2022-02-14 16:25:09 +00:00
Sebastian Hasler
adffd3f8b6
scripts: Use shebang /usr/bin/env bash
...
Not all distros have `/bin/bash`, e.g. NixOS.
Fixes : #3450
Signed-off-by: Sebastian Hasler <sebastian.hasler@stuvus.uni-stuttgart.de >
2022-01-13 22:53:28 +01:00
bin
106df33ff8
libs: add some generated files to .gitignore
...
Generated protocols files should not be inclued in Git repo.
And also add Cargo.lock in oci/protocols directory to .gitignore.
Fixes : #3422
Signed-off-by: bin <bin@hyper.sh >
2022-01-11 19:29:27 +08:00
Feng Wang
c486c2ca18
agent: fix the broken protobuf generation code
...
After the protocols are moved to upper libs (PR3355),
the runtime protocol generation is broken. This fixes it.
Fixes : #3414
Signed-off-by: Feng Wang <feng.wang@databricks.com >
2022-01-10 15:37:00 -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