@Override
    public void doAdmissionChecks(Function.FunctionDetails functionDetails){
        final String overriddenJobName = getOverriddenName(functionDetails);
        KubernetesRuntime.doChecks(functionDetails, overriddenJobName);
        validateMinResourcesRequired(functionDetails);
        validateMaxResourcesRequired(functionDetails);
        validateResourcesGranularityAndProportion(functionDetails);
        secretsProviderConfigurator.doAdmissionChecks(appsClient, coreClient,
                getOverriddenNamespace(functionDetails), overriddenJobName, functionDetails);
    }
@Test
    public void testAdmissionChecks() throws Exception {
        factory = createKubernetesRuntimeFactory(null, null, null, null, false);
        FunctionDetails functionDetails = createFunctionDetails();
        factory.doAdmissionChecks(functionDetails);
    }