fn gen_kubernetes_pods_basic_metadata(&mut self) {
        if self.watch_kubernetes {
            if let Some(kubernetes) = self.kubernetes_client.as_mut() {
                if let Ok(pods_result) = kubernetes.list_pods("".to_string()) {
                    self.pods = pods_result;
                    debug!("Found {} pods", &self.pods.len());
                    self.pods_last_check = current_system_time_since_epoch().as_secs().to_string();
                } else {
                    info!("Failed getting pods list, despite client seems ok.");
                }
            } else {
                debug!("Kubernetes socket is not some.");
            }
        }
    }
/// If *self.watch_kubernetes* is true,
/// queries the local kubernetes API (if this is a kubernetes cluster node)
/// and retrieves the list of pods running on this node, thanks to *self.kubernetes_client*.
/// Stores the result as *self.pods* and updates *self.pods_last_check* if the operation is successfull.
If *self.watch_kubernetes* is true,
queries the local kubernetes API (if this is a kubernetes cluster node)
and retrieves the list of pods running on this node, thanks to *self.kubernetes_client*.
Stores the result as *self.pods* and updates *self.pods_last_check* if the operation is successfull.
If * self . watch_kubernetes * is true queries the local kubernetes API ( if this is a kubernetes cluster node ) and retrieves the list of pods running on this node thanks to * self . kubernetes_client * . Stores the result as * self . pods * and updates * self . pods_last_check * if the operation is successfull .
fn gen_kubernetes_pods_basic_metadata(&mut self) {
        if self.watch_kubernetes {
            if let Some(kubernetes) = self.kubernetes_client.as_mut() {
                if let Ok(pods_result) = kubernetes.list_pods("".to_string()) {
                    self.pods = pods_result;
                    debug!("Found {} pods", &self.pods.len());
                    self.pods_last_check = current_system_time_since_epoch().as_secs().to_string();
                } else {
                    info!("Failed getting pods list, despite client seems ok.");
                }
            } else {
                debug!("Kubernetes socket is not some.");
            }
        }
    }
fn gen_kubernetes_pods_basic_metadata ( & mut self ) { if self . watch_kubernetes { if let Some ( kubernetes ) = self . kubernetes_client . as_mut ( ) { if let Ok ( pods_result ) = kubernetes . list_pods ( " " . to_string ( ) ) { self . pods = pods_result ; debug ! ( " " self pods len ( ) ) ; self . pods_last_check = current_system_time_since_epoch ( ) . as_secs ( ) . to_string ( ) ; } else { info ! ( " " ) ; } } else { debug ! ( " " ) ; } } }
If *self.watch_kubernetes* is true,
queries the local kubernetes API (if this is a kubernetes cluster node)
and retrieves the list of pods running on this node, thanks to *self.kubernetes_client*.
If * self . watch_kubernetes * is true queries the local kubernetes API ( if this is a kubernetes cluster node ) and retrieves the list of pods running on this node thanks to * self . kubernetes_client * .
&mut self
&mut self