Class NameAndConfigBasedSecretsProviderConfigurator
java.lang.Object
org.apache.pulsar.functions.secretsproviderconfigurator.NameAndConfigBasedSecretsProviderConfigurator
- All Implemented Interfaces:
SecretsProviderConfigurator
public class NameAndConfigBasedSecretsProviderConfigurator
extends Object
implements SecretsProviderConfigurator
This is a very simple secrets provider which wires in a given secrets provider classname/config
to the function instances/containers. This does not do any special kubernetes specific wiring.
-
Constructor Summary
ConstructorsConstructorDescriptionNameAndConfigBasedSecretsProviderConfigurator(String className, Map<String, String> config) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureKubernetesRuntimeSecretsProvider(io.kubernetes.client.openapi.models.V1PodSpec podSpec, String functionsContainerName, Function.FunctionDetails functionDetails) Attaches any secrets specific stuff to the k8 container for kubernetes runtime.voidconfigureProcessRuntimeSecretsProvider(ProcessBuilder processBuilder, Function.FunctionDetails functionDetails) Attaches any secrets specific stuff to the ProcessBuilder for process runtime.What is the type of the object that should be in the user secret config.getSecretsProviderClassName(Function.FunctionDetails functionDetails) Return the Secrets Provider Classname.getSecretsProviderConfig(Function.FunctionDetails functionDetails) Return the secrets provider config.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.functions.secretsproviderconfigurator.SecretsProviderConfigurator
doAdmissionChecks, init
-
Constructor Details
-
NameAndConfigBasedSecretsProviderConfigurator
-
-
Method Details
-
getSecretsProviderClassName
Description copied from interface:SecretsProviderConfiguratorReturn the Secrets Provider Classname. This will be passed to the cmdline of the instance and should contain the logic of connecting with the secrets provider and obtaining secrets.- Specified by:
getSecretsProviderClassNamein interfaceSecretsProviderConfigurator
-
getSecretsProviderConfig
Description copied from interface:SecretsProviderConfiguratorReturn the secrets provider config.- Specified by:
getSecretsProviderConfigin interfaceSecretsProviderConfigurator
-
configureKubernetesRuntimeSecretsProvider
public void configureKubernetesRuntimeSecretsProvider(io.kubernetes.client.openapi.models.V1PodSpec podSpec, String functionsContainerName, Function.FunctionDetails functionDetails) Description copied from interface:SecretsProviderConfiguratorAttaches any secrets specific stuff to the k8 container for kubernetes runtime.- Specified by:
configureKubernetesRuntimeSecretsProviderin interfaceSecretsProviderConfigurator
-
configureProcessRuntimeSecretsProvider
public void configureProcessRuntimeSecretsProvider(ProcessBuilder processBuilder, Function.FunctionDetails functionDetails) Description copied from interface:SecretsProviderConfiguratorAttaches any secrets specific stuff to the ProcessBuilder for process runtime.- Specified by:
configureProcessRuntimeSecretsProviderin interfaceSecretsProviderConfigurator
-
getSecretObjectType
Description copied from interface:SecretsProviderConfiguratorWhat is the type of the object that should be in the user secret config.- Specified by:
getSecretObjectTypein interfaceSecretsProviderConfigurator- Returns:
-