Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 145 for hostIPC (0.13 sec)

  1. pkg/kubelet/sysctl/allowlist_test.go

    		}
    	}
    
    	for _, test := range invalid {
    		if err := w.validateSysctl(test.sysctl, test.hostNet, test.hostIPC); err == nil {
    			t.Errorf("expected to be rejected: %+v", test)
    		}
    		pod.Spec.HostNetwork = test.hostNet
    		pod.Spec.HostIPC = test.hostIPC
    		pod.Spec.SecurityContext.Sysctls = []v1.Sysctl{{Name: test.sysctl, Value: test.sysctl}}
    		status := w.Admit(attrs)
    		if status.Admit {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 22:58:54 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. pkg/kubelet/sysctl/allowlist.go

    //
    // The parameters hostNet and hostIPC are used to forbid sysctls for pod sharing the
    // respective namespaces with the host. This check is only possible for sysctls on
    // the static default allowlist, not those on the custom allowlist provided by the admin.
    func (w *patternAllowlist) validateSysctl(sysctl string, hostNet, hostIPC bool) error {
    	sysctl = utilsysctl.NormalizeName(sysctl)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 22:58:54 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/v1/types.go

    	// Use the host's ipc namespace.
    	// Optional: Default to false.
    	// +k8s:conversion-gen=false
    	// +optional
    	HostIPC bool `json:"hostIPC,omitempty" protobuf:"varint,13,opt,name=hostIPC"`
    	// Specifies the hostname of the Carp
    	// If not specified, the carp's hostname will be set to a system-defined value.
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 15:45:02 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/apis/example/v1/types.go

    	// Use the host's ipc namespace.
    	// Optional: Default to false.
    	// +k8s:conversion-gen=false
    	// +optional
    	HostIPC bool `json:"hostIPC,omitempty" protobuf:"varint,13,opt,name=hostIPC"`
    	// Specifies the hostname of the Pod
    	// If not specified, the pod's hostname will be set to a system-defined value.
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 15:45:02 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/conversion.go

    		// 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)
  6. pkg/kubelet/kuberuntime/util/util_test.go

    				Network: runtimeapi.NamespaceMode_POD,
    				Pid:     runtimeapi.NamespaceMode_CONTAINER,
    			},
    		},
    		"Host Namespaces": {
    			input: &v1.Pod{
    				Spec: v1.PodSpec{
    					HostIPC:     true,
    					HostNetwork: true,
    					HostPID:     true,
    				},
    			},
    			expected: &runtimeapi.NamespaceOption{
    				Ipc:     runtimeapi.NamespaceMode_NODE,
    				Network: runtimeapi.NamespaceMode_NODE,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:14:48 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/util/util.go

    }
    
    // IpcNamespaceForPod returns the runtimeapi.NamespaceMode
    // for the IPC namespace of a pod
    func IpcNamespaceForPod(pod *v1.Pod) runtimeapi.NamespaceMode {
    	if pod != nil && pod.Spec.HostIPC {
    		return runtimeapi.NamespaceMode_NODE
    	}
    	return runtimeapi.NamespaceMode_POD
    }
    
    // NetworkNamespaceForPod returns the runtimeapi.NamespaceMode
    // for the network namespace of a pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:14:48 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/policy/v1beta1/generated.proto

      // hostPID determines if the policy allows the use of HostPID in the pod spec.
      // +optional
      optional bool hostPID = 8;
    
      // hostIPC determines if the policy allows the use of HostIPC in the pod spec.
      // +optional
      optional bool hostIPC = 9;
    
      // seLinux is the strategy that will dictate the allowable labels that may be set.
      optional SELinuxStrategyOptions seLinux = 10;
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/apis/example/v1/generated.proto

      // +optional
      optional bool hostPID = 12;
    
      // Use the host's ipc namespace.
      // Optional: Default to false.
      // +k8s:conversion-gen=false
      // +optional
      optional bool hostIPC = 13;
    
      // Specifies the hostname of the Pod
      // If not specified, the pod's hostname will be set to a system-defined value.
      // +optional
      optional string hostname = 16;
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. common-protos/k8s.io/apimachinery/pkg/apis/testapigroup/v1/generated.proto

      // +optional
      optional bool hostPID = 12;
    
      // Use the host's ipc namespace.
      // Optional: Default to false.
      // +k8s:conversion-gen=false
      // +optional
      optional bool hostIPC = 13;
    
      // Specifies the hostname of the Carp
      // If not specified, the carp's hostname will be set to a system-defined value.
      // +optional
      optional string hostname = 16;
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top