// toKubeContainerState transfers state to kubelet container state.
toKubeContainerState transfers state to kubelet container state.
// toKubeContainerState transfers state to kubelet container state .
func toKubeContainerState(state string) kubeapi.ContainerState {
	switch state {
	case "running":
		return kubeapi.ContainerState_CONTAINER_RUNNING
	case "pending":
		return kubeapi.ContainerState_CONTAINER_CREATED
	case "failed", "succeeded":
		return kubeapi.ContainerState_CONTAINER_EXITED
	default:
		return kubeapi.ContainerState_CONTAINER_UNKNOWN
	}
}
func toKubeContainerState ( state string ) kubeapi . ContainerState { switch state { case " " : return kubeapi . ContainerState_CONTAINER_RUNNING case " " : return kubeapi . ContainerState_CONTAINER_CREATED case " " , " " : return kubeapi . ContainerState_CONTAINER_EXITED default : return kubeapi . ContainerState_CONTAINER_UNKNOWN } }
toKubeContainerState transfers state to kubelet container state.
toKubeContainerState transfers state to kubelet container state .