- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 86 for podspec_ (0.18 sec)
-
pkg/api/pod/util.go
} } } for i := range podSpec.Containers { if podSpec.Containers[i].Lifecycle == nil { continue } adjustLifecycle(podSpec.Containers[i].Lifecycle) if podSpec.Containers[i].Lifecycle.PreStop == nil && podSpec.Containers[i].Lifecycle.PostStart == nil { podSpec.Containers[i].Lifecycle = nil } } for i := range podSpec.InitContainers { if podSpec.InitContainers[i].Lifecycle == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 41.3K bytes - Viewed (0) -
pkg/api/pod/util_test.go
name string enabled bool podSpec *api.PodSpec oldPodSpec *api.PodSpec wantPodSpec *api.PodSpec }{ { name: "feature disabled, both pods don't use the fields", enabled: false, oldPodSpec: &api.PodSpec{ TopologySpreadConstraints: []api.TopologySpreadConstraint{}, }, podSpec: &api.PodSpec{ TopologySpreadConstraints: []api.TopologySpreadConstraint{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 108.8K bytes - Viewed (0) -
pkg/kubelet/container/helpers_test.go
testCases := []struct { name string podSpec *v1.PodSpec expectedResult bool }{ { name: "hostprocess not set anywhere", podSpec: &v1.PodSpec{ Containers: []v1.Container{{ Name: containerName, }}, }, expectedResult: false, }, { name: "pod with hostprocess=false", podSpec: &v1.PodSpec{ HostNetwork: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 01:55:46 UTC 2024 - 24.5K bytes - Viewed (0) -
pkg/volume/emptydir/empty_dir_test.go
} physicalMounter = mount.NewFakeMounter(nil) mountDetector = fakeMountDetector{} pod = &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ UID: types.UID("poduid"), }, Spec: v1.PodSpec{ Containers: []v1.Container{ { Resources: v1.ResourceRequirements{ Requests: v1.ResourceList{ v1.ResourceName("hugepages-2Mi"): resource.MustParse("100Mi"), }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 30.7K bytes - Viewed (0) -
pkg/apis/core/validation/validation_test.go
} cases := map[string]struct { podSpec *core.PodSpec expectErr bool errorType field.ErrorType errorDetail string }{ "valid SC, linux, no error": { podSpec: &core.PodSpec{SecurityContext: validLinuxSC}, expectErr: false, }, "invalid SC, linux, error": { podSpec: &core.PodSpec{SecurityContext: invalidLinuxSC}, errorType: "FieldValueForbidden",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0) -
pkg/volume/util/nested_volumes_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 09:02:45 UTC 2024 - 5.9K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container_test.go
}{ { name: "default termination grace period", pod: &v1.Pod{ Spec: v1.PodSpec{Containers: []v1.Container{{Name: "foo"}}}, }, reason: reasonUnknown, expectedGracePeriod: int64(2), }, { name: "use pod termination grace period", pod: &v1.Pod{ Spec: v1.PodSpec{ Containers: []v1.Container{{Name: "foo"}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 28K bytes - Viewed (0) -
cni/pkg/nodeagent/informers_test.go
ctx, cancel := context.WithCancel(context.Background()) defer cancel() pod := &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "test", Namespace: "test", }, Spec: corev1.PodSpec{ NodeName: NodeName, }, Status: corev1.PodStatus{ PodIP: "11.1.1.12", }, } ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "test"}} client := kube.NewFakeClient(ns, pod)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 05:10:23 UTC 2024 - 22.2K bytes - Viewed (0) -
pkg/volume/util/util_test.go
desc string pod *v1.Pod wantFsUser *int64 }{ { desc: "no runAsUser specified", pod: &v1.Pod{ Spec: v1.PodSpec{}, }, wantFsUser: nil, }, { desc: "some have runAsUser specified", pod: &v1.Pod{ Spec: v1.PodSpec{ SecurityContext: &v1.PodSecurityContext{}, InitContainers: []v1.Container{ { SecurityContext: &v1.SecurityContext{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 28.7K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/labels_test.go
Name: "test_pod", Namespace: "test_pod_namespace", UID: "test_pod_uid", DeletionGracePeriodSeconds: &deletionGracePeriod, }, Spec: v1.PodSpec{ Containers: []v1.Container{*container}, TerminationGracePeriodSeconds: &terminationGracePeriod, }, } var tests = []struct { description string expected *labeledContainerInfo
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 22:43:36 UTC 2024 - 7.3K bytes - Viewed (0)