kubelet 0.7.0

A Kubernetes kubelet implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
use k8s_openapi::api::core::v1::HostPathVolumeSource;

use super::*;

pub(crate) async fn populate(hostpath: &HostPathVolumeSource) -> anyhow::Result<VolumeType> {
    // Check the the directory exists on the host
    tokio::fs::metadata(&hostpath.path).await?;
    Ok(VolumeType::HostPath)
}