1
0
mirror of https://github.com/opencontainers/runtime-spec.git synced 2026-02-05 18:45:18 +01:00
Commit Graph

1524 Commits

Author SHA1 Message Date
Kir Kolyshkin
8a09257551 Merge pull request #1116 from kailun-qin/add-hugetlb-rsvd
config-linux: add support for rsvd hugetlb cgroup
2023-03-21 09:48:51 -07:00
Akihiro Suda
9067ce60e4 Merge pull request #1179 from austinvazquez/add-go-1.20
Add Go 1.20 support
2023-03-17 13:17:08 +09:00
Austin Vazquez
167ffb42e3 Add Go 1.20 support to CI
Adds a Go compiler matrix to CI for testing of latest Go versions.
Updates and pins to major version GitHub actions packages.

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
2023-03-16 18:12:37 +00:00
Austin Vazquez
15d2a5a2ed Switch Go linting to use golangci-lint
Signed-off-by: Austin Vazquez <macedonv@amazon.com>
2023-03-16 18:07:48 +00:00
Austin Vazquez
c9b5d0e19a Remove references to deprecated io/ioutil package
Signed-off-by: Austin Vazquez <macedonv@amazon.com>
2023-03-16 15:33:06 +00:00
Akihiro Suda
a7c7692b2a Merge pull request #1184 from dabaooline/fix-config-reference
fix config-linux.md url error
2023-03-06 15:41:14 +09:00
daobao qiao
77c37f1e9a Update config-linux.md
fix time_namespaces url error.

Signed-off-by: daobao qiao <201028369@qq.com>
2023-03-06 09:50:36 +08:00
Akihiro Suda
58ec43f9fc Merge pull request #1148 from c3d/issue/1147-device-location
config-linux: Clarify where device nodes can be created
2023-02-15 18:04:56 +09:00
Tianon Gravi
4f38d2d7ef Merge pull request #1181 from AkihiroSuda/clarify-mount-options
config: clarify Linux mount options
2023-02-10 12:42:37 -08:00
Akihiro Suda
6c638b1309 config: clarify Linux mount options
The former wording was inconsistent with runc, crun, youki, etc.

Several `mount(8)` options such as `X-mount.mode` are unimplemented in those OCI runtimes,
and vice versa (`tmpcopyup`, `rro`, etc.)

The option table added in this commit conforms to runc 1.1, but `acl`
and `noacl` are excluded as the runc implementation seems wrong (runc issue 3738).

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-02-10 15:21:07 +09:00
Vincent Batts
3eb06200a0 Merge pull request #1178 from AkihiroSuda/remove-json-must
runtime: remove `When serialized in JSON, the format MUST adhere to the following pattern`
2023-02-08 12:16:44 -05:00
Akihiro Suda
72efacbe70 runtime: remove When serialized in JSON, the format MUST adhere to the following pattern
The sentence looked like as if it required a specific indentation pattern.

Fix issue 1177

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-02-08 19:58:26 +09:00
Qiang Huang
7301c34549 Merge pull request #1151 from KentaTada/add-time-namespac
Add support for time namespace
2023-02-01 11:38:51 +08:00
Akihiro Suda
0ff8cd9a63 Merge pull request #1175 from AkihiroSuda/propose-v1.1.0-rc1
Release v1.1.0-rc.1
2023-02-01 10:42:06 +09:00
Akihiro Suda
c42f9ae5cc version: v1.1.0-rc.1-dev
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-01-25 15:43:37 +09:00
Akihiro Suda
3e013c2729 version: release v1.1.0-rc.1
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
v1.1.0-rc.1
2023-01-25 15:42:25 +09:00
Akihiro Suda
f790b685b5 ChangeLog: Document changes since v1.0.2
Through 5cfc4c32c2 (2023-01-24)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-01-25 15:41:22 +09:00
Kenta Tada
36bb632767 Add support for time namespace
The time namespace is a new kernel feature available in 5.6+ to
isolate the system monotonic and boot-time clocks.

Signed-off-by: Kenta Tada <Kenta.Tada@sony.com>
2023-01-24 21:20:51 +09:00
Aleksa Sarai
5cfc4c32c2 merge branch 'pr-1169'
Cory Snider (1):
  config: change prestart hook spec to match reality

LGTMs: AkihiroSuda guiseppe cyphar
Closes #1169
2023-01-24 15:06:40 +11:00
Akihiro Suda
6188d9e9ef Merge pull request #1120 from kailun-qin/add-cfs-burst
config-linux: add CFS bandwidth burst
2023-01-23 20:05:01 +09:00
Cory Snider
f225699b75 config: change prestart hook spec to match reality
runC originally implemented prestart hooks contrary to the spec. And it
still implements them the same way today, as it would break a lot of
projects which have come to rely on the existing behaviour. Any OCI
runtime implementations which want to be compatible with projects that
have come to rely on the existing runC behaviour must also implement
them contrary to the spec. Furthermore, the Lifecycle section of the
spec requires the existing runC behaviour for the prestart hook,
_directly contradicting the section of the spec which defines the
prestart hook in config.md!_ Given that existing implementations cannot
be changed, the spec contradicts existing implementations, and the spec
contradicts _itself_, amending the spec to align with the existing runC
behaviour is the only viable way to resolve the contradiction.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2022-11-02 17:21:09 -04:00
Kir Kolyshkin
494a5a6aca Merge pull request #1158 from kolyshkin/check-before-update
config-linux: add memory.checkBeforeUpdate
2022-09-09 13:48:39 -07:00
Akihiro Suda
cbb84bec92 Merge pull request #1161 from kinvolk/alban_seccomp_flags
seccomp: Add flag SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
2022-09-07 21:03:35 +09:00
Alban Crequy
4bcd065f24 seccomp: Add flag SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
Linux 5.19 introduced a new seccomp flag:
SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV

It is useful for seccomp notify when handling notification from Golang
programs which are often preempted by the runtime with SIGURG.

Signed-off-by: Alban Crequy <albancrequy@microsoft.com>
2022-09-07 12:11:41 +02:00
Kailun Qin
d931d4b8ab config-linux: add CFS bandwidth burst
Burstable CFS controller is introduced in Linux 5.14. This helps with
parallel workloads that might be bursty. They can get throttled even
when their average utilization is under quota. And they may be latency
sensitive at the same time so that throttling them is undesired.

This feature borrows time now against the future underrun, at the cost
of increased interference against the other system users, by introducing
`cfs_burst_us` into CFS bandwidth control to enact the cap on unused
bandwidth accumulation, which will then used additionally for burst.

The patch adds the support/control for CFS bandwidth burst.

Fixes https://github.com/opencontainers/runtime-spec/issues/1119

Signed-off-by: Kailun Qin <kailun.qin@intel.com>
2022-09-02 09:40:53 -04:00
Qiang Huang
901acb908d Merge pull request #1160 from AkihiroSuda/sync-codeowners
CODEOWNERS: sync with MAINTAINERS
2022-09-02 15:13:15 +08:00
Akihiro Suda
6be797c7ff CODEOWNERS: sync with MAINTAINERS
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-09-02 15:21:49 +09:00
Kir Kolyshkin
9e658bcd71 config-linux: add memory.checkBeforeUpdate
This setting can be used to mimic cgroup v1 behavior on cgroup v2,
when setting the new memory limit during update operation.

In cgroup v1, a limit which is lower than the current usage is rejected.

In cgroup v2, such a low limit is causing an OOM kill.

Ref: https://github.com/opencontainers/runc/issues/3509

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-08-29 10:48:45 -07:00
Vincent Batts
86290f6a00 Merge pull request #1156 from cdoern/domainname
add domainname spec entity
2022-08-25 17:28:26 -04:00
Christophe de Dinechin
3565df5d7e config-linux: Clarify where device nodes can be created
Clarify that device nodes need not be under `/dev`, but that the runtimes need
to be informed of all the device nodes that are used by the container.

Virtual-machine based runtimes such as Kata Containers need to be able to
perform adjustment on device nodes, and cannot be required to deep-scan
file-systems to do so.

The proposed wording was chosen to avoid any regression for any workload
mounding nodes elsewhere, while at the same time clarifying that correct
behaviour cannot be guaranteed if a device node is created on the host and used
by the container without being passed in the devices list.

This fixes issue #1147.

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2022-08-10 10:25:39 +02:00
Vincent Batts
9ee22abf86 Merge pull request #1150 from h-vetinari/maintainers
maintainer updates as per #1101
2022-08-09 15:05:08 -04:00
Tianon Gravi
39d19d4923 Merge pull request #1157 from vbatts/correct_charter_url
GOVERNANCE: correct the Charter URL
2022-08-09 11:53:54 -07:00
Vincent Batts
1924f6b0bd GOVERNANCE: correct the Charter URL
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-08-09 18:41:51 +00:00
Charlie Doern
744912b29a add domainname spec entity
add the domainname entity so that container runtimes can add special handling similar to hostname. The current workaround of adding a sysctl for kernel.domainname only works with rootful execution in most cases. This will allow for rootless execution.

container runtimes will be able to add special handling as they do for hostname, using setdomainname to add the entry to /proc/sys/kernel/domainname.

Signed-off-by: Charlie Doern <cdoern@redhat.com>
2022-08-08 10:19:42 -04:00
Tianon Gravi
a8106e9998 Merge pull request #1138 from saschagrunert/seccomp-filter-flags
Add available `LinuxSeccompFlag`s
2022-07-18 13:16:35 -07:00
Tianon Gravi
8d0d6d41d0 Merge pull request #1153 from ygerlach/patch-1
fix RFC link
2022-07-06 10:11:01 -07:00
Yannis Gerlach
0da1600b6d fix rfc link
Signed-off-by: Yannis Gerlach <100762533+ygerlach@users.noreply.github.com>
2022-07-06 10:46:07 +02:00
Tianon Gravi
72c1f0b44f Merge pull request #1143 from AlexeyPerevalov/IdMapMounts
IDMapping field for mount point
2022-06-01 09:40:19 -07:00
H. Vetinari
b57ada52a0 maintainer updates as per #1101
Signed-off-by: H. Vetinari <h.vetinari@gmx.com>
2022-05-31 16:34:42 +02:00
Alexey Perevalov
9d1130dc3b IDMapping field for mount point
Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com>
Co-authored-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2022-05-26 17:03:17 +08:00
Tianon Gravi
27924127bf Merge pull request #1145 from giuseppe/add-idle-to-schema
schema: add cpu idle
2022-05-05 11:43:44 -07:00
Tianon Gravi
031e38d556 Merge pull request #1146 from wineway/main
config-linux: update type of LinuxCPU.Idle  to *int64
2022-04-28 15:54:09 -07:00
wineway
fc985aa06b config-linux: update type of LinuxCPU.Idle to *int64
and add cpu.idle to example in config.md

Signed-off-by: wineway <wangyuweihx@gmail.com>
2022-04-24 21:57:11 +08:00
Giuseppe Scrivano
bc545ecf66 schema: add cpu idle
commit 9d363b36f6 added the feature but
didn't update the json schema file.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2022-04-20 18:12:37 +02:00
Vincent Batts
2cf6663ca2 Merge pull request #1103 from askervin/5CD_export_linuxblockiodevice
specs-go: export LinuxBlockIODevice
2022-04-20 11:12:48 -04:00
Vincent Batts
b5677b87f6 Merge pull request #1144 from jterry75/main
Update Windows CPU comments
2022-04-20 11:03:11 -04:00
Vincent Batts
2fde0ec207 Merge pull request #1084 from Iceber/schema-golang-1.16
schema: make with golang 1.16
2022-04-20 10:59:45 -04:00
Vincent Batts
e54040a9b1 Merge pull request #1136 from wineway/main
config-linux: add idle option for container cgroup
2022-04-20 10:56:59 -04:00
Vincent Batts
ba3abe1642 Merge pull request #1083 from Iceber/schema-readme
schema: update README.md
2022-04-20 10:51:27 -04:00
Justin Terry
1fef707c4d Update Windows CPU comments
Signed-off-by: Justin Terry <jlterry@amazon.com>
2022-04-15 08:42:21 -07:00