k3s/pkg/kubelet/kuberuntime
Kubernetes Submit Queue 8371a778f6 Merge pull request #35839 from Random-Liu/add-cri-runtime-status
Automatic merge from submit-queue

CRI: Add Status into CRI.

For https://github.com/kubernetes/kubernetes/issues/35701.
Fixes https://github.com/kubernetes/kubernetes/issues/35701.

This PR added a `Status` call in CRI, and the `RuntimeStatus` is defined as following:

``` protobuf
message RuntimeCondition {
    // Type of runtime condition.
    optional string type = 1;
    // Status of the condition, one of true/false.
    optional bool status = 2;
    // Brief reason for the condition's last transition.
    optional string reason = 3;
    // Human readable message indicating details about last transition.
    optional string message = 4;
}

message RuntimeStatus {
    // Conditions is an array of current observed runtime conditions.
    repeated RuntimeCondition conditions = 1;
}
```

Currently, only `conditions` is included in `RuntimeStatus`, and the definition is almost the same with `NodeCondition` and `PodCondition` in K8s api.

@yujuhong @feiskyer @bprashanth If this makes sense, I'll send a follow up PR to let dockershim return `RuntimeStatus` and let kubelet make use of it.
@yifan-gu @euank Does this make sense to rkt?
/cc @kubernetes/sig-node
2016-11-06 04:16:29 -08:00
..
BUILD Generate bazel. 2016-10-26 17:37:37 -07:00
doc.go Kubelet: add garbage collection for new runtime API 2016-09-14 09:09:45 +08:00
fake_kuberuntime_manager.go Add oom score adj in new CRI implementation. 2016-09-26 11:39:02 -07:00
helpers.go Add RuntimeStatus in container/runtime.go 2016-11-05 00:02:05 -07:00
helpers_test.go kuberuntime: include container hash in backoff keys 2016-09-23 14:52:30 -07:00
instrumented_services.go Add Status implementation. 2016-11-05 00:02:05 -07:00
kuberuntime_container.go Merge pull request #36020 from timstclair/klet-stream 2016-11-04 11:52:06 -07:00
kuberuntime_container_test.go * Refactor kuberuntime unit test 2016-10-24 00:03:34 -07:00
kuberuntime_gc.go CRI: stop sandbox before removing it 2016-11-03 14:11:19 -07:00
kuberuntime_gc_test.go CRI: Rename container/sandbox states 2016-11-01 13:18:21 -07:00
kuberuntime_image.go * Add docker pullable support. 2016-10-12 09:21:10 -07:00
kuberuntime_image_test.go Implement temporary ImageStats in kuberuntime_manager, and 2016-10-03 22:56:25 -07:00
kuberuntime_logs.go Add kuberuntime container logs support. 2016-10-26 17:37:09 -07:00
kuberuntime_logs_test.go Add unit test for kuberuntime container logs. 2016-10-26 17:37:09 -07:00
kuberuntime_manager.go Add RuntimeStatus in container/runtime.go 2016-11-05 00:02:05 -07:00
kuberuntime_manager_test.go CRI: Rename container/sandbox states 2016-11-01 13:18:21 -07:00
kuberuntime_sandbox.go Separate Direct and Indirect streaming paths, implement indirect path with CRI 2016-11-03 13:26:33 -07:00
kuberuntime_sandbox_test.go Symlink docker logs to CRI defined log path. 2016-10-23 19:08:47 -07:00
labels.go Kubelet: implement GetPods for kuberuntime 2016-08-22 10:59:05 +08:00
labels_test.go
legacy.go Add legacy container log location support. 2016-10-23 19:08:47 -07:00