- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 327 for PodSpec (0.16 sec)
-
staging/src/k8s.io/client-go/applyconfigurations/core/v1/podspec.go
ResourceClaims []PodResourceClaimApplyConfiguration `json:"resourceClaims,omitempty"` } // PodSpecApplyConfiguration constructs an declarative configuration of the PodSpec type for use with // apply. func PodSpec() *PodSpecApplyConfiguration { return &PodSpecApplyConfiguration{} } // WithVolumes adds the given value to the Volumes field in the declarative configuration
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 10 19:22:42 UTC 2022 - 23.9K bytes - Viewed (0) -
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/scheduler/framework/plugins/interpodaffinity/scoring_test.go
pod: &v1.Pod{Spec: v1.PodSpec{NodeName: "", Affinity: stayWithS1InRegion}, ObjectMeta: metav1.ObjectMeta{Labels: podLabelSecurityS1}}, pods: []*v1.Pod{ {Spec: v1.PodSpec{NodeName: "node1"}, ObjectMeta: metav1.ObjectMeta{Labels: podLabelSecurityS1}}, {Spec: v1.PodSpec{NodeName: "node2"}, ObjectMeta: metav1.ObjectMeta{Labels: podLabelSecurityS2}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 44.8K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_sandbox_test.go
trueVar := true falseVar := false testCases := []struct { name string podSpec *v1.PodSpec expectedWindowsConfig *runtimeapi.WindowsPodSandboxConfig expectedError error }{ { name: "Empty PodSecurityContext", podSpec: &v1.PodSpec{ Containers: []v1.Container{{ Name: containerName, }}, },
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/registry/core/pod/strategy_test.go
}{ { in: &api.Pod{ Spec: api.PodSpec{NodeName: "nodeA"}, }, fieldSelector: fields.ParseSelectorOrDie("spec.nodeName=nodeA"), expectMatch: true, }, { in: &api.Pod{ Spec: api.PodSpec{NodeName: "nodeB"}, }, fieldSelector: fields.ParseSelectorOrDie("spec.nodeName=nodeA"), expectMatch: false, }, { in: &api.Pod{ Spec: api.PodSpec{RestartPolicy: api.RestartPolicyAlways}, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 76.2K bytes - Viewed (0) -
pkg/kube/inject/webhook_test.go
} func TestInjectRequired(t *testing.T) { podSpec := &corev1.PodSpec{} podSpecHostNetwork := &corev1.PodSpec{ HostNetwork: true, } cases := []struct { config *Config podSpec *corev1.PodSpec meta metav1.ObjectMeta want bool }{ { config: &Config{ Policy: InjectionPolicyEnabled, }, podSpec: podSpec, meta: metav1.ObjectMeta{ Name: "no-policy",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 39K bytes - Viewed (1) -
plugin/pkg/admission/extendedresourcetoleration/admission_test.go
requestedPod: core.Pod{ Spec: core.PodSpec{}, }, expectedPod: core.Pod{ Spec: core.PodSpec{}, }, }, { description: "pod with container without any extended resources, expect no change in tolerations", requestedPod: core.Pod{ Spec: core.PodSpec{ Containers: []core.Container{ containerRequestingCPU, }, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 20 15:11:00 UTC 2019 - 10.3K bytes - Viewed (0) -
pkg/kubelet/status/generate_test.go
} } } func TestGeneratePodInitializedCondition(t *testing.T) { noInitContainer := &v1.PodSpec{} oneInitContainer := &v1.PodSpec{ InitContainers: []v1.Container{ {Name: "1234"}, }, Containers: []v1.Container{ {Name: "regular"}, }, } twoInitContainer := &v1.PodSpec{ InitContainers: []v1.Container{ {Name: "1234"}, {Name: "5678"}, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 12 15:18:11 UTC 2023 - 18.2K bytes - Viewed (0) -
pkg/kubelet/cm/helpers_linux_test.go
pod *v1.Pod expected *ResourceConfig enforceCPULimits bool quotaPeriod uint64 // in microseconds }{ "besteffort": { pod: &v1.Pod{ Spec: v1.PodSpec{ Containers: []v1.Container{ { Resources: getResourceRequirements(getResourceList("", ""), getResourceList("", "")), }, }, }, }, enforceCPULimits: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.8K bytes - Viewed (0)