@Test public void testAdmissionChecks() throws Exception { factory = createKubernetesRuntimeFactory(null, null); FunctionDetails functionDetails = createFunctionDetails(); factory.doAdmissionChecks(functionDetails); }
@Override public void doAdmissionChecks(Function.FunctionDetails functionDetails) { KubernetesRuntime.doChecks(functionDetails); validateMinResourcesRequired(functionDetails); secretsProviderConfigurator.doAdmissionChecks(appsClient, coreClient, getOverriddenNamespace(functionDetails), functionDetails); }
KubernetesRuntimeFactory implements RuntimeFactory { @Override public void doAdmissionChecks(Function.FunctionDetails functionDetails) { KubernetesRuntime.doChecks(functionDetails); validateMinResourcesRequired(functionDetails); secretsProviderConfigurator.doAdmissionChecks(appsClient, coreClient, getOverriddenNamespace(functionDetails), functionDetails); } }
KubernetesRuntimeFactory implements RuntimeFactory { @Override public void doAdmissionChecks(Function.FunctionDetails functionDetails) { KubernetesRuntime.doChecks(functionDetails); validateMinResourcesRequired(functionDetails); secretsProviderConfigurator.doAdmissionChecks(appsClient, coreClient, getOverriddenNamespace(functionDetails), functionDetails); }  }
KubernetesRuntimeFactory implements RuntimeFactory { @Override public void doAdmissionChecks(Function.FunctionDetails functionDetails) { KubernetesRuntime.doChecks(functionDetails); validateMinResourcesRequired(functionDetails); secretsProviderConfigurator.doAdmissionChecks(appsClient, coreClient, getOverriddenNamespace(functionDetails), functionDetails); }  @Override boolean externallyManaged(); @Override void initialize(WorkerConfig workerConfig, AuthenticationConfig authenticationConfig,
                           SecretsProviderConfigurator secretsProviderConfigurator,
                           Optional<FunctionAuthProvider> functionAuthProvider,
                           Optional<RuntimeCustomizer> runtimeCustomizer); @Override KubernetesRuntime createContainer(InstanceConfig instanceConfig, String codePkgUrl,
                                             String originalCodeFileName,
                                             Long expectedHealthCheckInterval); @Override void close(); @Override void doAdmissionChecks(Function.FunctionDetails functionDetails); @VisibleForTesting void setupClient(); @Override Optional<KubernetesFunctionAuthProvider> getAuthProvider(); @Override Optional<KubernetesManifestCustomizer> getRuntimeCustomizer(); }
KubernetesRuntimeFactory implements RuntimeFactory { @Override public void doAdmissionChecks(Function.FunctionDetails functionDetails) { KubernetesRuntime.doChecks(functionDetails); validateMinResourcesRequired(functionDetails); secretsProviderConfigurator.doAdmissionChecks(appsClient, coreClient, getOverriddenNamespace(functionDetails), functionDetails); }  @Override boolean externallyManaged(); @Override void initialize(WorkerConfig workerConfig, AuthenticationConfig authenticationConfig,
                           SecretsProviderConfigurator secretsProviderConfigurator,
                           Optional<FunctionAuthProvider> functionAuthProvider,
                           Optional<RuntimeCustomizer> runtimeCustomizer); @Override KubernetesRuntime createContainer(InstanceConfig instanceConfig, String codePkgUrl,
                                             String originalCodeFileName,
                                             Long expectedHealthCheckInterval); @Override void close(); @Override void doAdmissionChecks(Function.FunctionDetails functionDetails); @VisibleForTesting void setupClient(); @Override Optional<KubernetesFunctionAuthProvider> getAuthProvider(); @Override Optional<KubernetesManifestCustomizer> getRuntimeCustomizer();  }