Derek McGowan
e0e6f870b7
Merge pull request #9086 from dmcgowan/move-to-log-repo
...
Use github.com/containerd/log
2023-09-22 09:25:29 -07:00
Derek McGowan
508aa3a1ef
Move to use github.com/containerd/log
...
Add github.com/containerd/log to go.mod
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-09-22 07:53:23 -07:00
Aditya Ramani
729c97cf39
Handle unexpected shim kill events
...
When a shim process is unexpectedly killed in a way that was not initiated through containerd - containerd reports the pod as not ready but the containers as running. This results in kubelet repeatedly sending container kill requests that fail since containerd cannot connect to the shim.
Changes:
- In the container exit handler, treat `err: Unavailable` as if the container has already exited out
- When attempting to get a connection to the shim, if the controller isn't available assume that the shim has been killed (needs to be done since we have a separate exit handler that cleans up the reference to the shim controller - before kubelet has the chance to call StopPodSandbox)
Signed-off-by: Aditya Ramani <a_ramani@apple.com >
2023-09-18 12:15:55 -07:00
Wei Fu
8dcb2a6e6d
pkg/cri/sbserver: fix leaked shim issue for podsandbox mode
...
Fixes : #7496 #8931
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-08-11 17:43:51 +08:00
Sebastiaan van Stijn
4bb709c018
avoid "any" as variable name
...
Avoid shadowing / confusion with Go's "any" built-in type.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2023-06-10 13:49:06 +02:00
Maksym Pavlenko
fc50334ca9
Generate sandbox exit events from CRI
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
2023-05-30 16:40:58 -07:00
Maksym Pavlenko
cf56054594
Move pod sandbox recovery to podsandbox/ package
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
2023-05-30 13:54:35 -07:00
Maksym Pavlenko
6f34da5f80
Cleanup logrus imports
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
2023-05-05 11:54:14 -07:00
Maksym Pavlenko
3557ac884b
Extract image service from CRI
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
2023-03-28 20:37:26 -07:00
Krisztian Litkey
ebbcb57a4c
pkg/cri/sbserver: experimental NRI integration for CRI.
...
Hook the NRI service plugin into CRI sbserver request
processing.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com >
2023-02-13 22:08:18 +02:00
Derek McGowan
edb8ebaf07
Merge pull request #8047 from ruiwen-zhao/send_nil
...
Send container events with nil PodSandboxStatus
2023-02-13 11:38:14 -08:00
Akihiro Suda
b61988670c
go.mod: github.com/containerd/typeurl/v2 v2.1.0
...
Changes: https://github.com/containerd/typeurl/compare/7f6e6d160d67...v2.1.0
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2023-02-11 23:39:52 +09:00
ruiwen-zhao
27c8f4085c
Move PLEG event generation back to sbserver to avoid missing pod sandbox status
...
Signed-off-by: ruiwen-zhao <ruiwen@google.com >
2023-02-11 01:34:33 +00:00
Maksym Pavlenko
21fe0ceaad
Move PLEG events for pause container to podsandbox
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
2023-01-25 19:28:48 -08:00
ruiwen-zhao
a6929f9f6b
Add Evented PLEG support to sandbox server
...
Signed-off-by: ruiwen-zhao <ruiwen@google.com >
2022-12-08 19:31:36 +00:00
Maksym Pavlenko
ca3b9b50fe
Run gofmt 1.19
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
2022-08-04 18:18:33 -07:00
Maksym Pavlenko
cf5df7e4ac
Fork CRI server package
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
2022-07-13 10:54:59 -07:00