Class KafkaMirrorMaker2Resources

java.lang.Object
io.strimzi.api.kafka.model.mirrormaker2.KafkaMirrorMaker2Resources

public class KafkaMirrorMaker2Resources extends Object
Encapsulates the naming scheme used for the resources which the Cluster Operator manages for a KafkaMirrorMaker2 cluster.
  • Constructor Details

    • KafkaMirrorMaker2Resources

      public KafkaMirrorMaker2Resources()
  • Method Details

    • componentName

      public static String componentName(String clusterName)
      Returns the name of the Kafka MirrorMaker 2 Deployment for a KafkaMirrorMaker2 cluster of the given name.
      Parameters:
      clusterName - The metadata.name of the KafkaMirrorMaker2 resource.
      Returns:
      The name of the corresponding Kafka MirrorMaker 2 Deployment.
    • serviceAccountName

      public static String serviceAccountName(String clusterName)
      Returns the name of the Kafka MirrorMaker 2 ServiceAccount for a KafkaMirrorMaker2 cluster of the given name.
      Parameters:
      clusterName - The metadata.name of the KafkaMirrorMaker2 resource.
      Returns:
      The name of the corresponding Kafka MirrorMaker 2 ServiceAccount.
    • serviceName

      public static String serviceName(String clusterName)
      Returns the name of the HTTP REST Service for a KafkaMirrorMaker2 cluster of the given name.
      Parameters:
      clusterName - The metadata.name of the KafkaMirrorMaker2 resource.
      Returns:
      The name of the corresponding Service.
    • metricsAndLogConfigMapName

      public static String metricsAndLogConfigMapName(String clusterName)
      Returns the name of the Kafka MirrorMaker 2 metrics and log ConfigMap for a KafkaMirrorMaker2 cluster of the given name.
      Parameters:
      clusterName - The metadata.name of the KafkaMirrorMaker2 resource.
      Returns:
      The name of the corresponding KafkaMirrorMaker2 metrics and log ConfigMap.
    • qualifiedServiceName

      public static String qualifiedServiceName(String clusterName, String namespace)
      Returns qualified name of the service which works across different namespaces.
      Parameters:
      clusterName - The metadata.name of the KafkaMirrorMaker2 resource.
      namespace - Namespace of the Connect deployment
      Returns:
      qualified namespace in the format "<service-name>.<namespace>.svc"
    • url

      public static String url(String clusterName, String namespace, int port)
      Returns the URL of the Kafka MirrorMaker 2 REST API for a KafkaMirrorMaker2 cluster of the given name.
      Parameters:
      clusterName - The metadata.name of the KafkaMirrorMaker2 resource.
      namespace - The namespace where KafkaMirrorMaker2 cluster is running.
      port - The port on which the KafkaMirrorMaker2 API is available.
      Returns:
      The base URL of the KafkaMirrorMaker2 REST API.
    • initContainerClusterRoleBindingName

      public static String initContainerClusterRoleBindingName(String clusterName, String namespace)
      Get the name of the init container role binding given the name of the cluster and namespace.
      Parameters:
      clusterName - The cluster name.
      namespace - The namespace.
      Returns:
      The name of the init container's cluster role binding.