Class KerberosMountDecorator

java.lang.Object
org.apache.flink.kubernetes.kubeclient.decorators.AbstractKubernetesStepDecorator
org.apache.flink.kubernetes.kubeclient.decorators.KerberosMountDecorator
All Implemented Interfaces:
KubernetesStepDecorator

public class KerberosMountDecorator extends AbstractKubernetesStepDecorator
Mount the custom Kerberos Configuration and Credential to the JobManager(s)/TaskManagers.
  • Constructor Details

  • Method Details

    • decorateFlinkPod

      public FlinkPod decorateFlinkPod(FlinkPod flinkPod)
      Description copied from class: AbstractKubernetesStepDecorator
      Apply transformations on the given FlinkPod in accordance to this feature. Note that we should return a FlinkPod that keeps all of the properties of the passed FlinkPod object.

      So this is correct:

      
       Pod decoratedPod = new PodBuilder(pod) // Keeps the original state
           ...
           .build()
      
       Container decoratedContainer = new ContainerBuilder(container) // Keeps the original state
           ...
           .build()
      
       FlinkPod decoratedFlinkPod = new FlinkPodBuilder(flinkPod) // Keeps the original state
           ...
           .build()
      
       

      And this is the incorrect:

      
       Pod decoratedPod = new PodBuilder() // Loses the original state
           ...
           .build()
      
       Container decoratedContainer = new ContainerBuilder() // Loses the original state
           ...
           .build()
      
       FlinkPod decoratedFlinkPod = new FlinkPodBuilder() // Loses the original state
           ...
           .build()
      
       
      Specified by:
      decorateFlinkPod in interface KubernetesStepDecorator
      Overrides:
      decorateFlinkPod in class AbstractKubernetesStepDecorator
    • buildAccompanyingKubernetesResources

      public List<io.fabric8.kubernetes.api.model.HasMetadata> buildAccompanyingKubernetesResources() throws IOException
      Description copied from class: AbstractKubernetesStepDecorator
      Note that the method could have a side effect of modifying the Flink Configuration object, such as update the JobManager address.
      Specified by:
      buildAccompanyingKubernetesResources in interface KubernetesStepDecorator
      Overrides:
      buildAccompanyingKubernetesResources in class AbstractKubernetesStepDecorator
      Throws:
      IOException
    • getKerberosKeytabSecretName

      public static String getKerberosKeytabSecretName(String clusterId)
    • getKerberosKrb5confConfigMapName

      public static String getKerberosKrb5confConfigMapName(String clusterID)