Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HostIPCSources (0.13 sec)

  1. pkg/capabilities/capabilities.go

    	HostNetworkSources []string
    
    	// List of pod sources for which using host pid namespace is allowed.
    	HostPIDSources []string
    
    	// List of pod sources for which using host ipc is allowed.
    	HostIPCSources []string
    }
    
    var capInstance struct {
    	once         sync.Once
    	lock         sync.Mutex
    	capabilities *Capabilities
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 12:51:16 UTC 2019
    - 3K bytes
    - Viewed (0)
  2. pkg/capabilities/capabilities_test.go

    		capInstance.once = sync.Once{}
    	}()
    	defaultCap := Capabilities{
    		AllowPrivileged: false,
    		PrivilegedSources: PrivilegedSources{
    			HostNetworkSources: []string{},
    			HostPIDSources:     []string{},
    			HostIPCSources:     []string{},
    		},
    	}
    
    	res := Get()
    	if !reflect.DeepEqual(defaultCap, res) {
    		t.Fatalf("expected Capabilities: %#v, got a non-default: %#v", defaultCap, res)
    	}
    
    	cap := Capabilities{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 13 09:53:47 UTC 2021
    - 1.4K bytes
    - Viewed (0)
Back to top