Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getPodEtcHostsStats (0.3 sec)

  1. pkg/kubelet/stats/host_stats_provider_test.go

    				podEtcHostsPathFunc: tt.podEtcHostsPathFunc,
    			}
    			got, err := h.getPodEtcHostsStats(tt.podUID, tt.rootFsInfo)
    			if (err != nil) != tt.wantErr {
    				t.Errorf("getPodEtcHostsStats() error = %v, wantErr %v", err, tt.wantErr)
    				return
    			}
    			if !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("getPodEtcHostsStats() got = %v, want %v", got, tt.want)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 10 11:26:59 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  2. pkg/kubelet/stats/host_stats_provider.go

    	getPodContainerLogStats(podNamespace, podName string, podUID types.UID, containerName string, rootFsInfo *cadvisorapiv2.FsInfo) (*statsapi.FsStats, error)
    	// getPodEtcHostsStats gets stats associated with pod etc-hosts usage
    	getPodEtcHostsStats(podUID types.UID, rootFsInfo *cadvisorapiv2.FsInfo) (*statsapi.FsStats, error)
    }
    
    type hostStatsProvider struct {
    	// osInterface is the interface for syscalls.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. pkg/kubelet/stats/host_stats_provider_fake.go

    	metricsProvider := NewFakeMetricsDu(path, f.fakeStats[path])
    	return fakeMetricsProvidersToStats([]volume.MetricsProvider{metricsProvider}, rootFsInfo)
    }
    
    func (f *fakeHostStatsProvider) getPodEtcHostsStats(podUID types.UID, rootFsInfo *cadvisorapiv2.FsInfo) (*statsapi.FsStats, error) {
    	return nil, fmt.Errorf("not implemented")
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:57:17 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. pkg/kubelet/stats/helper.go

    		// We should continue generating other stats in that case.
    		// calcEphemeralStorage tolerants logStats == nil.
    	}
    	etcHostsStats, err := hostStatsProvider.getPodEtcHostsStats(podUID, rootFsInfo)
    	if err != nil {
    		klog.V(6).ErrorS(err, "Unable to fetch pod etc hosts stats", "pod", klog.KRef(podNs, podName))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 23:40:02 UTC 2023
    - 14.8K bytes
    - Viewed (0)
Back to top