Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode Generic ConfigBody as JSON #2

Open
wants to merge 50 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
af6a90b
remotes/docker/authorizer.go: invalidate auth tokens when they expire.
iain-macdonald Jun 23, 2023
6b906a2
Prepare release notes for v2.0.0-beta.2
dmcgowan Jan 26, 2024
9795677
Move cri base plugin to CRI runtime service
dmcgowan Jan 24, 2024
d29a1bc
Move sandbox info to cri types packages
dmcgowan Jan 24, 2024
58ff9d3
Move cri plugin to plugins subpackage
dmcgowan Jan 24, 2024
65b3922
Split streaming config from runtime config
dmcgowan Jan 29, 2024
64b4778
Add deprecation warnings to CRI image server configuration
dmcgowan Jan 29, 2024
1b6019b
Merge pull request #9681 from dmcgowan/cri-runtime-plugin
dmcgowan Jan 29, 2024
f5f84a9
Merge pull request #8735 from iain-macdonald/iain-macdonald/issue-6377
estesp Jan 29, 2024
4f3a026
Merge pull request #9696 from dmcgowan/prepare-v2.0.0-beta.2
dmcgowan Jan 29, 2024
495afb0
build(deps): bump lycheeverse/lychee-action from 1.9.1 to 1.9.3
dependabot[bot] Jan 29, 2024
9a983ca
build(deps): bump github.com/containerd/plugin
dependabot[bot] Jan 29, 2024
3a5b47d
build(deps): bump google.golang.org/grpc from 1.60.1 to 1.61.0
dependabot[bot] Jan 29, 2024
4d33170
build(deps): bump github.com/google/uuid from 1.5.0 to 1.6.0
dependabot[bot] Jan 29, 2024
49d5cc7
build(deps): bump github.com/klauspost/compress from 1.17.4 to 1.17.5
dependabot[bot] Jan 29, 2024
d558f88
Merge pull request #9706 from containerd/dependabot/github_actions/ly…
mxpv Jan 30, 2024
728b45d
Merge pull request #9708 from containerd/dependabot/go_modules/github…
AkihiroSuda Jan 30, 2024
b537ed7
Merge pull request #9711 from containerd/dependabot/go_modules/github…
estesp Jan 30, 2024
4e34612
Merge pull request #9709 from containerd/dependabot/go_modules/google…
AkihiroSuda Jan 30, 2024
d58ec0b
Merge pull request #9710 from containerd/dependabot/go_modules/github…
AkihiroSuda Jan 30, 2024
ebbce74
rm docs/cri/installation.md
AkihiroSuda Jan 30, 2024
d8460a7
CI: bump up crun to 1.14
AkihiroSuda Jan 30, 2024
2369185
CI: update Rocky Linux to 8.9
AkihiroSuda Jan 30, 2024
93573f5
Merge pull request #9714 from AkihiroSuda/rm-docs-cri-installation.md
AkihiroSuda Jan 30, 2024
81409e9
Add a default differ that matches the snapshotter
jsturtevant Jan 30, 2024
87a9835
docs: fix typo
imba-tjd Jan 31, 2024
82fb589
Update runc binary to v1.1.12
dmcgowan Jan 31, 2024
f74e5ce
Move differ default to its own file
jsturtevant Jan 31, 2024
27706ca
Merge pull request #9721 from imba-tjd/patch-1
AkihiroSuda Jan 31, 2024
7ab5533
Merge pull request #9722 from dmcgowan/update-runc-1.1.12
AkihiroSuda Jan 31, 2024
cde08a4
Merge pull request #9715 from AkihiroSuda/crun-1.14
AkihiroSuda Jan 31, 2024
0dbe758
Merge pull request #9716 from AkihiroSuda/rocky8.9
AkihiroSuda Jan 31, 2024
b2f254f
cri: make read-only mounts recursively read-only
AkihiroSuda Jan 30, 2024
ac54047
Merge pull request #9713 from AkihiroSuda/cri-rro
mxpv Feb 1, 2024
9340be7
Remove duplicated TOML duration parsers
mxpv Feb 1, 2024
6e365e9
CRI: An empty DNSConfig != unspecified
thockin Feb 1, 2024
db1e16d
Merge pull request #9730 from thockin/main
dmcgowan Feb 2, 2024
bbac058
Move CRI from pkg/ to internal/
mxpv Feb 2, 2024
2875247
Fix formatting after moving CRI
mxpv Feb 2, 2024
7f2d2c4
Move Message proto to types
mxpv Feb 2, 2024
0facc85
Fix proto formatting
mxpv Feb 2, 2024
1a39b91
Merge pull request #9741 from mxpv/internal_cri
samuelkarp Feb 2, 2024
a896610
Merge pull request #9718 from jsturtevant/transfer-service-windows
dmcgowan Feb 2, 2024
96bf529
Merge pull request #9742 from mxpv/envelope
samuelkarp Feb 3, 2024
3124964
sandbox: fix recover status set issue
abel-von Jan 16, 2024
e230ed9
sandbox: add sandbox recover ut and e2e test
abel-von Jan 18, 2024
0125a42
Merge pull request #9729 from mxpv/duration
samuelkarp Feb 5, 2024
f5e7fe0
Merge pull request #9644 from abel-von/fix-sandbox-status
fuweid Feb 5, 2024
2c159f8
Encode Generic ConfigBody as JSON
Jenkins-J May 12, 2023
dabaed7
Generate proto files
Jenkins-J May 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ jobs:
matrix:
box:
- fedora/39-cloud-base
- rockylinux/8@8.0.0
- rockylinux/8@9.0.0
env:
BOX: ${{ matrix.box }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: lycheeverse/[email protected].1
- uses: lycheeverse/[email protected].3
with:
# Fail action on broken links
fail: true
Expand Down
5 changes: 4 additions & 1 deletion .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Arnaud Porterie <[email protected]>
Arnaud Porterie <[email protected]> <[email protected]>
Bob Mader <[email protected]>
Boris Popovschi <[email protected]>
bot <49699333+dependabot[bot]@users.noreply.github.com>
Bowen Yan <[email protected]>
Brent Baude <[email protected]>
Cao Zhihao <[email protected]>
Expand Down Expand Up @@ -54,7 +55,8 @@ haoyun <[email protected]>
Harry Zhang <[email protected]> <[email protected]>
Hu Shuai <[email protected]>
Hu Shuai <[email protected]> <[email protected]>
Iceber Gu <[email protected]>
Iceber Gu <[email protected]>
Iceber Gu <[email protected]> <[email protected]>
Jaana Burcu Dogan <[email protected]> <[email protected]>
Jess Valarezo <[email protected]>
Jess Valarezo <[email protected]> <[email protected]>
Expand Down Expand Up @@ -177,3 +179,4 @@ Zhoulin Xie <[email protected]>
Zhoulin Xie <[email protected]> <[email protected]>
zounengren <[email protected]> <[email protected]>
张潇 <[email protected]>
张钰 <[email protected]>
19 changes: 19 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,25 @@ version = 2

</p></details>

## Other breaking changes
### containerd v2.0
#### CRI plugin treats read-only mounts recursively read-only
Starting with containerd v2.0, the CRI plugin treats read-only mounts
as recursively read-only mounts when running on Linux kernel v5.12 or later.

To rollback to the legacy behavior that corresponds to containerd v1.x,
set the following config:
```toml
version = 2
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
# treat_ro_mounts_as_rro ("Enabled"|"IfPossible"|"Disabled")
# treats read-only mounts as recursive read-only mounts.
# An empty string means "IfPossible".
# "Enabled" requires Linux kernel v5.12 or later.
# This configuration does not apply to non-volume mounts such as "/sys/fs/cgroup".
treat_ro_mounts_as_rro = "Disabled"
```

## Experimental features

Experimental features are new features added to containerd which do not have the
Expand Down
2 changes: 1 addition & 1 deletion api/Protobuild.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ generators = ["go", "go-ttrpc", "go-fieldpath"]

[[overrides]]
prefixes = ["github.com/containerd/containerd/api/services/ttrpc/events/v1"]
generators = ["go", "go-ttrpc", "go-fieldpath"]
generators = ["go", "go-ttrpc"]

[[overrides]]
# enable ttrpc and disable fieldpath and grpc for the shim
Expand Down
132 changes: 52 additions & 80 deletions api/next.pb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3962,13 +3962,59 @@ file {
}
syntax: "proto3"
}
file {
name: "github.com/containerd/containerd/api/types/event.proto"
package: "containerd.types"
dependency: "github.com/containerd/containerd/api/types/fieldpath.proto"
dependency: "google/protobuf/any.proto"
dependency: "google/protobuf/timestamp.proto"
message_type {
name: "Envelope"
field {
name: "timestamp"
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
json_name: "timestamp"
}
field {
name: "namespace"
number: 2
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "namespace"
}
field {
name: "topic"
number: 3
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "topic"
}
field {
name: "event"
number: 4
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Any"
json_name: "event"
}
options {
64400: 1
}
}
options {
go_package: "github.com/containerd/containerd/v2/api/types;types"
}
syntax: "proto3"
}
file {
name: "github.com/containerd/containerd/api/services/events/v1/events.proto"
package: "containerd.services.events.v1"
dependency: "github.com/containerd/containerd/api/types/fieldpath.proto"
dependency: "github.com/containerd/containerd/api/types/event.proto"
dependency: "google/protobuf/any.proto"
dependency: "google/protobuf/empty.proto"
dependency: "google/protobuf/timestamp.proto"
message_type {
name: "PublishRequest"
field {
Expand All @@ -3994,7 +4040,7 @@ file {
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".containerd.services.events.v1.Envelope"
type_name: ".containerd.types.Envelope"
json_name: "envelope"
}
}
Expand All @@ -4008,42 +4054,6 @@ file {
json_name: "filters"
}
}
message_type {
name: "Envelope"
field {
name: "timestamp"
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
json_name: "timestamp"
}
field {
name: "namespace"
number: 2
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "namespace"
}
field {
name: "topic"
number: 3
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "topic"
}
field {
name: "event"
number: 4
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Any"
json_name: "event"
}
options {
64400: 1
}
}
service {
name: "Events"
method {
Expand All @@ -4059,7 +4069,7 @@ file {
method {
name: "Subscribe"
input_type: ".containerd.services.events.v1.SubscribeRequest"
output_type: ".containerd.services.events.v1.Envelope"
output_type: ".containerd.types.Envelope"
server_streaming: true
}
}
Expand Down Expand Up @@ -7070,57 +7080,19 @@ file {
file {
name: "github.com/containerd/containerd/api/services/ttrpc/events/v1/events.proto"
package: "containerd.services.events.ttrpc.v1"
dependency: "github.com/containerd/containerd/api/types/fieldpath.proto"
dependency: "google/protobuf/any.proto"
dependency: "github.com/containerd/containerd/api/types/event.proto"
dependency: "google/protobuf/empty.proto"
dependency: "google/protobuf/timestamp.proto"
message_type {
name: "ForwardRequest"
field {
name: "envelope"
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".containerd.services.events.ttrpc.v1.Envelope"
type_name: ".containerd.types.Envelope"
json_name: "envelope"
}
}
message_type {
name: "Envelope"
field {
name: "timestamp"
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
json_name: "timestamp"
}
field {
name: "namespace"
number: 2
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "namespace"
}
field {
name: "topic"
number: 3
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "topic"
}
field {
name: "event"
number: 4
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Any"
json_name: "event"
}
options {
64400: 1
}
}
service {
name: "Events"
method {
Expand Down
Loading
Loading