Class KubernetesSecretsProviderConfigurator

java.lang.Object
org.apache.pulsar.functions.secretsproviderconfigurator.KubernetesSecretsProviderConfigurator
All Implemented Interfaces:
SecretsProviderConfigurator

public class KubernetesSecretsProviderConfigurator extends Object implements SecretsProviderConfigurator
This file defines the SecretsProviderConfigurator that will be used by default for running in Kubernetes. As such this implementation is strictly when workers are configured to use kubernetes runtime. We use kubernetes in built secrets and bind them as environment variables within the function container to ensure that the secrets are available to the function at runtime. Then we plug in the EnvironmentBasedSecretsConfig as the secrets provider who knows how to read these environment variables.