Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for BuildPodLogsDirectory (0.34 sec)

  1. pkg/kubelet/kuberuntime/helpers.go

    	return filepath.Join(BuildPodLogsDirectory(podLogsDir, podNamespace, podName, podUID), containerName)
    }
    
    // BuildPodLogsDirectory builds absolute log directory path for a pod sandbox.
    func BuildPodLogsDirectory(podLogsDir, podNamespace, podName string, podUID types.UID) string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. pkg/kubelet/stats/cri_stats_provider_test.go

    		filepath.Join(kuberuntime.BuildPodLogsDirectory(testPodLogDirectory, "sandbox0-ns", "sandbox0-name", types.UID("sandbox0-uid")), podLogName0): podLogStats0,
    		filepath.Join(kuberuntime.BuildPodLogsDirectory(testPodLogDirectory, "sandbox1-ns", "sandbox1-name", types.UID("sandbox1-uid")), podLogName1): podLogStats1,
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  3. pkg/kubelet/stats/host_stats_provider_fake.go

    		osInterface: osInterface,
    	}
    }
    
    func (f *fakeHostStatsProvider) getPodLogStats(podNamespace, podName string, podUID types.UID, rootFsInfo *cadvisorapiv2.FsInfo) (*statsapi.FsStats, error) {
    	path := kuberuntime.BuildPodLogsDirectory("/var/log/kube/pods/", podNamespace, podName, podUID)
    	files, err := f.osInterface.ReadDir(path)
    	if err != nil {
    		return nil, err
    	}
    	var results []volume.MetricsProvider
    	for _, file := range files {
    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/host_stats_provider.go

    	return result, nil
    }
    
    func (h hostStatsProvider) podLogMetrics(podNamespace, podName string, podUID types.UID) (metricsProviderByPath, error) {
    	podLogsDirectoryPath := kuberuntime.BuildPodLogsDirectory(h.podLogsDirectory, podNamespace, podName, podUID)
    	return h.fileMetricsByDir(podLogsDirectoryPath)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    		podHostname, err = util.GetNodenameForKernel(podHostname, podDomain, pod.Spec.SetHostnameAsFQDN)
    		if err != nil {
    			return nil, err
    		}
    		podSandboxConfig.Hostname = podHostname
    	}
    
    	logDir := BuildPodLogsDirectory(m.podLogsDirectory, pod.Namespace, pod.Name, pod.UID)
    	podSandboxConfig.LogDirectory = logDir
    
    	portMappings := []*runtimeapi.PortMapping{}
    	for _, c := range pod.Spec.Containers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top