接口 SecretsProviderConfigurator

    • 方法概要

      所有方法 实例方法 抽象方法 默认方法 
      修饰符和类型 方法 说明
      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.
      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.
      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.
      java.lang.reflect.Type getSecretObjectType()
      What is the type of the object that should be in the user secret config.
      java.lang.String getSecretsProviderClassName​(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 void init​(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.