k3s/pkg/kubelet/dockershim
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
..
cm Fix build break on non-Linux OS introduced in 87aaf4c0 2016-11-02 12:27:11 +02:00
remote Add Status implementation. 2016-11-05 00:02:05 -07:00
BUILD Update bazel. 2016-11-05 00:02:05 -07:00
convert.go Merge pull request #35930 from Random-Liu/handle-empty-container-name 2016-11-01 21:59:38 -07:00
convert_test.go CRI: Rename container/sandbox states 2016-11-01 13:18:21 -07:00
doc.go
docker_container.go Merge pull request #35597 from feiskyer/gpu 2016-11-04 02:30:52 -07:00
docker_container_test.go CRI: Rename container/sandbox states 2016-11-01 13:18:21 -07:00
docker_image.go * Add docker pullable support. 2016-10-12 09:21:10 -07:00
docker_image_test.go * Add docker pullable support. 2016-10-12 09:21:10 -07:00
docker_sandbox.go Merge pull request #35930 from Random-Liu/handle-empty-container-name 2016-11-01 21:59:38 -07:00
docker_sandbox_test.go CRI: Rename container/sandbox states 2016-11-01 13:18:21 -07:00
docker_service.go Populate NetworkReady Status. 2016-11-05 00:02:05 -07:00
docker_service_test.go Populate NetworkReady Status. 2016-11-05 00:02:05 -07:00
docker_streaming.go Cleanup leaking goroutine 2016-11-02 15:08:21 -07:00
helpers.go Merge pull request #34830 from feiskyer/sysctl 2016-10-26 19:09:03 -07:00
helpers_test.go Add sysctls for dockershim 2016-10-25 11:24:31 +08:00
legacy.go dockershim: remove unused GetContainerLogs method 2016-11-03 17:27:18 -07:00
naming.go * Add docker pullable support. 2016-10-12 09:21:10 -07:00
naming_test.go dockershim: utilize the Metadata in container names 2016-09-12 10:58:21 -07:00