- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for generatePodSandboxConfig (0.41 sec)
-
pkg/kubelet/kuberuntime/kuberuntime_sandbox.go
klog.ErrorS(err, "Failed to create sandbox for pod", "pod", klog.KObj(pod)) return "", message, err } return podSandBoxID, "", nil } // generatePodSandboxConfig generates pod sandbox config from v1.Pod. func (m *kubeGenericRuntimeManager) generatePodSandboxConfig(pod *v1.Pod, attempt uint32) (*runtimeapi.PodSandboxConfig, error) { // TODO: deprecating podsandbox resource requirements in favor of the pod level cgroup
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 13.6K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_sandbox_linux_test.go
User: "qux", }, RunAsUser: &runtimeapi.Int64Value{Value: 1000}, RunAsGroup: &runtimeapi.Int64Value{Value: 10}, }, } podSandboxConfig, err := m.generatePodSandboxConfig(pod, 1) assert.NoError(t, err) assert.Equal(t, expectedLinuxPodSandboxConfig.SecurityContext.SelinuxOptions, podSandboxConfig.Linux.SecurityContext.SelinuxOptions)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 8K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_sandbox_test.go
Namespace: pod.Namespace, Uid: string(pod.UID), Attempt: uint32(1), } expectedPortMappings := []*runtimeapi.PortMapping{ { HostPort: 8080, }, } podSandboxConfig, err := m.generatePodSandboxConfig(pod, 1) assert.NoError(t, err) assert.Equal(t, expectedLabels, podSandboxConfig.Labels) assert.Equal(t, expectedLogDirectory, podSandboxConfig.LogDirectory)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 14.3K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_manager.go
result.AddSyncResult(configPodSandboxResult) podSandboxConfig, err := m.generatePodSandboxConfig(pod, podContainerChanges.Attempt) if err != nil { message := fmt.Sprintf("GeneratePodSandboxConfig for pod %q failed: %v", format.Pod(pod), err) klog.ErrorS(err, "GeneratePodSandboxConfig for pod failed", "pod", klog.KObj(pod)) configPodSandboxResult.Fail(kubecontainer.ErrConfigPodSandbox, message)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 02:01:31 UTC 2024 - 64.7K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_manager_test.go
func makeFakePodSandbox(t *testing.T, m *kubeGenericRuntimeManager, template sandboxTemplate) *apitest.FakePodSandbox { config, err := m.generatePodSandboxConfig(template.pod, template.attempt) assert.NoError(t, err, "generatePodSandboxConfig for sandbox template %+v", template) podSandboxID := apitest.BuildSandboxName(config.Metadata) podSandBoxStatus := &apitest.FakePodSandbox{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 96K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container_test.go
ctx := context.Background() // Fake all the things you need before trying to create a container fakeSandBox, _ := makeAndSetFakePod(t, m, fakeRuntime, testPod) fakeSandBoxConfig, _ := m.generatePodSandboxConfig(testPod, 0) testContainer.Lifecycle = cmdPostStart fakePodStatus := &kubecontainer.PodStatus{ ContainerStatuses: []*kubecontainer.Status{ { ID: kubecontainer.ContainerID{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 28K bytes - Viewed (0)