- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 85 for hostNetwork (0.14 sec)
-
pkg/kubelet/kuberuntime/kuberuntime_sandbox_test.go
Name: containerName, }}, }, expectedWindowsConfig: nil, expectedError: fmt.Errorf("hostNetwork is required if Pod contains HostProcess containers"), }, { name: "Pod with HostProcess containers and HostNetwork set", podSpec: &v1.PodSpec{ HostNetwork: true, SecurityContext: &v1.PodSecurityContext{ WindowsOptions: &v1.WindowsSecurityContextOptions{ HostProcess: &trueVar,
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/network/dns/dns_test.go
dnsPolicy: v1.DNSDefault, expectedDNSType: podDNSHost, }, { desc: "valid DNSDefault with hostnetwork", hostNetwork: true, dnsPolicy: v1.DNSDefault, expectedDNSType: podDNSHost, }, { desc: "DNSClusterFirst with hostnetwork, fallback to DNSDefault", hasClusterDNS: true, hostNetwork: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 25.6K bytes - Viewed (0) -
pkg/securitycontext/accessors_test.go
continue } } // HostNetwork { modifiedSC := nonNilSC(tc.newSC()) m := NewPodSecurityContextMutator(tc.newSC()) modifiedSC.HostNetwork = !modifiedSC.HostNetwork m.SetHostNetwork(!m.HostNetwork()) if !reflect.DeepEqual(m.PodSecurityContext(), modifiedSC) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 22 16:15:27 UTC 2023 - 27.8K bytes - Viewed (0) -
pkg/securitycontext/accessors.go
w.podSC = &api.PodSecurityContext{} } } func (w *podSecurityContextWrapper) HostNetwork() bool { if w.podSC == nil { return false } return w.podSC.HostNetwork } func (w *podSecurityContextWrapper) SetHostNetwork(v bool) { if w.podSC == nil && v == false { return } w.ensurePodSC() w.podSC.HostNetwork = v } func (w *podSecurityContextWrapper) HostPID() bool { if w.podSC == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 22 16:15:27 UTC 2023 - 14.4K bytes - Viewed (0) -
pkg/kubelet/container/helpers_test.go
Containers: []v1.Container{{ Name: containerName, SecurityContext: &v1.SecurityContext{ WindowsOptions: &v1.WindowsSecurityContextOptions{ HostProcess: &trueVar, }, }, }}, }, expectedResult: true, }, { name: "pod with hostprocess=false, container with hostprocess=true", 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/apis/core/v1/conversion.go
if in.SecurityContext != nil { // the host namespace fields have to be handled here for backward compatibility // with v1.0.0 out.HostPID = in.SecurityContext.HostPID out.HostNetwork = in.SecurityContext.HostNetwork out.HostIPC = in.SecurityContext.HostIPC out.ShareProcessNamespace = in.SecurityContext.ShareProcessNamespace out.HostUsers = in.SecurityContext.HostUsers } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 22:30:55 UTC 2024 - 19K bytes - Viewed (0) -
staging/src/k8s.io/client-go/applyconfigurations/core/v1/podspec.go
return b } // WithHostNetwork sets the HostNetwork field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the HostNetwork field is set to the value of the last call. func (b *PodSpecApplyConfiguration) WithHostNetwork(value bool) *PodSpecApplyConfiguration { b.HostNetwork = &value return b }
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/kubelet/util/pod_startup_latency_tracker_test.go
tracker := &basicPodStartupLatencyTracker{ pods: map[types.UID]*perPodState{}, clock: fakeClock, } // hostNetwork pods should not be tracked hostNetworkPodInitializing := buildInitializingPod() hostNetworkPodInitializing.UID = "11111-22222" hostNetworkPodInitializing.Spec.HostNetwork = true tracker.ObservedPodOnWatch(hostNetworkPodInitializing, frozenTime) hostNetworkPodStarted := buildRunningPod()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 15 06:09:49 UTC 2023 - 13.7K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods_linux_test.go
}, } for name, tc := range testCases { t.Run(name, func(t *testing.T) { fhu := hostutil.NewFakeHostUtil(nil) fsp := &subpath.FakeSubpath{} pod := v1.Pod{ Spec: v1.PodSpec{ HostNetwork: true, }, } mounts, _, err := makeMounts(&pod, "/pod", &tc.container, "fakepodname", "", []string{""}, tc.podVolumes, fhu, fsp, nil, tc.supportsRRO) // validate only the error if we expect an error
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 18:00:59 UTC 2024 - 11.3K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_sandbox.go
// and HostNetwork is required to be set. if !kubecontainer.AllContainersAreWindowsHostProcess(pod) { return nil, fmt.Errorf("pod must not contain both HostProcess and non-HostProcess containers") } if !kubecontainer.IsHostNetworkPod(pod) { return nil, fmt.Errorf("hostNetwork is required if Pod contains HostProcess 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)