Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getSeccompProfile (0.2 sec)

  1. pkg/kubelet/kuberuntime/helpers_linux_test.go

    				ProfileType:  runtimeapi.SecurityProfile_Localhost,
    				LocalhostRef: seccompLocalhostRef("field-cont-profile.json"),
    			},
    		},
    	}
    
    	for i, test := range tests {
    		seccompProfile, err := m.getSeccompProfile(test.annotation, test.containerName, test.podSc, test.containerSc, false)
    		if test.expectedError != "" {
    			assert.EqualError(t, err, test.expectedError, "TestCase[%d]: %s", i, test.description)
    		} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/helpers.go

    		}
    	}
    	return &runtimeapi.SecurityProfile{
    		ProfileType: runtimeapi.SecurityProfile_Unconfined,
    	}, nil
    }
    
    func (m *kubeGenericRuntimeManager) getSeccompProfile(annotations map[string]string, containerName string,
    	podSecContext *v1.PodSecurityContext, containerSecContext *v1.SecurityContext, fallbackToRuntimeDefault bool) (*runtimeapi.SecurityProfile, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top