async fn start_node_updater(client: kube::Client, node_name: String) -> anyhow::Result<()> {
    let sleep_interval = std::time::Duration::from_secs(10);
    loop {
        node::update(&client, &node_name).await;
        tokio::time::delay_for(sleep_interval).await;
    }
}
/// Periodically renew node lease and status. Exits if signal is caught.
Periodically renew node lease and status. Exits if signal is caught.
Periodically renew node lease and status . Exits if signal is caught .
async fn start_node_updater(client: kube::Client, node_name: String) -> anyhow::Result<()> {
    let sleep_interval = std::time::Duration::from_secs(10);
    loop {
        node::update(&client, &node_name).await;
        tokio::time::delay_for(sleep_interval).await;
    }
}
async fn start_node_updater ( client : kube :: Client , node_name : String ) -> anyhow :: Result < ( ) > { let sleep_interval = std :: time :: Duration :: from_secs ( 10 ) ; loop { node :: update ( & client , & node_name ) . await ; tokio :: time :: delay_for ( sleep_interval ) . await ; } }
Periodically renew node lease and status.
Periodically renew node lease and status .
client
kube::Client
node_name
String
client
kube::Client
node_name
String