接口 SecretsProviderConfigurator
-
- 所有已知实现类:
DefaultSecretsProviderConfigurator,KubernetesSecretsProviderConfigurator,NameAndConfigBasedSecretsProviderConfigurator
public interface SecretsProviderConfiguratorThis file defines the SecretsProviderConfigurator interface. This interface is used by the function_workers to choose the SecretProvider class name(if any) and its associated config at the time of starting the function instances.
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 voidconfigureKubernetesRuntimeSecretsProvider(io.kubernetes.client.openapi.models.V1PodSpec podSpec, java.lang.String functionsContainerName, org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)Attaches any secrets specific stuff to the k8 container for kubernetes runtime.voidconfigureProcessRuntimeSecretsProvider(java.lang.ProcessBuilder processBuilder, org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)Attaches any secrets specific stuff to the ProcessBuilder for process runtime.default voiddoAdmissionChecks(io.kubernetes.client.openapi.apis.AppsV1Api appsV1Api, io.kubernetes.client.openapi.apis.CoreV1Api coreV1Api, java.lang.String jobNamespace, java.lang.String jobName, org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)Do config checks to see whether the secrets provided are conforming.java.lang.reflect.TypegetSecretObjectType()What is the type of the object that should be in the user secret config.java.lang.StringgetSecretsProviderClassName(org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)Return the Secrets Provider Classname.java.util.Map<java.lang.String,java.lang.String>getSecretsProviderConfig(org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)Return the secrets provider config.default voidinit(java.util.Map<java.lang.String,java.lang.String> config)Initialize the SecretsProviderConfigurator.
-
-
-
方法详细资料
-
init
default void init(java.util.Map<java.lang.String,java.lang.String> config)
Initialize the SecretsProviderConfigurator.
-
getSecretsProviderClassName
java.lang.String getSecretsProviderClassName(org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)
Return 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.
-
getSecretsProviderConfig
java.util.Map<java.lang.String,java.lang.String> getSecretsProviderConfig(org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)
Return the secrets provider config.
-
configureKubernetesRuntimeSecretsProvider
void configureKubernetesRuntimeSecretsProvider(io.kubernetes.client.openapi.models.V1PodSpec podSpec, java.lang.String functionsContainerName, org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)Attaches any secrets specific stuff to the k8 container for kubernetes runtime.
-
configureProcessRuntimeSecretsProvider
void configureProcessRuntimeSecretsProvider(java.lang.ProcessBuilder processBuilder, org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)Attaches any secrets specific stuff to the ProcessBuilder for process runtime.
-
getSecretObjectType
java.lang.reflect.Type getSecretObjectType()
What is the type of the object that should be in the user secret config.- 返回:
-
doAdmissionChecks
default void doAdmissionChecks(io.kubernetes.client.openapi.apis.AppsV1Api appsV1Api, io.kubernetes.client.openapi.apis.CoreV1Api coreV1Api, java.lang.String jobNamespace, java.lang.String jobName, org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)Do config checks to see whether the secrets provided are conforming.
-
-