- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 331 for podspec_ (0.11 sec)
-
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) -
pkg/api/pod/warnings.go
}, } func warningsForPodSpecAndMeta(fieldPath *field.Path, podSpec *api.PodSpec, meta *metav1.ObjectMeta, oldPodSpec *api.PodSpec, oldMeta *metav1.ObjectMeta) []string { var warnings []string // use of deprecated node labels in selectors/affinity/topology for k := range podSpec.NodeSelector { if msg, deprecated := nodeapi.GetNodeLabelDeprecatedMessage(k); deprecated {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 17:51:48 UTC 2024 - 16.6K bytes - Viewed (0) -
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/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) -
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) -
plugin/pkg/admission/defaulttolerationseconds/admission_test.go
expectedPod api.Pod }{ { description: "pod has no tolerations, expect add tolerations for `not-ready:NoExecute` and `unreachable:NoExecute`", requestedPod: api.Pod{ Spec: api.PodSpec{}, }, expectedPod: api.Pod{ Spec: api.PodSpec{ Tolerations: []api.Toleration{ { Key: v1.TaintNodeNotReady, Operator: api.TolerationOpExists,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 06 04:56:21 UTC 2019 - 8.8K bytes - Viewed (0) -
pkg/apis/core/pods/helpers.go
func VisitContainersWithPath(podSpec *api.PodSpec, specPath *field.Path, visitor ContainerVisitorWithPath) bool { fldPath := specPath.Child("initContainers") for i := range podSpec.InitContainers { if !visitor(&podSpec.InitContainers[i], fldPath.Index(i)) { return false } } fldPath = specPath.Child("containers") for i := range podSpec.Containers { if !visitor(&podSpec.Containers[i], fldPath.Index(i)) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 01:35:30 UTC 2023 - 3.2K 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/kube/inject/app_probe_test.go
containers: &corev1.Pod{Spec: corev1.PodSpec{Containers: []corev1.Container{proxy}}}, want: &proxy, }, { name: "app-and-sidecar", containers: &corev1.Pod{Spec: corev1.PodSpec{Containers: []corev1.Container{app, proxy}}}, want: &proxy, }, { name: "no-sidecar", containers: &corev1.Pod{Spec: corev1.PodSpec{Containers: []corev1.Container{app}}}, want: nil,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Aug 04 15:06:24 UTC 2023 - 8.6K bytes - Viewed (0)