Class KafkaBridgeResources

java.lang.Object
io.strimzi.api.kafka.model.bridge.KafkaBridgeResources

public class KafkaBridgeResources extends Object
Encapsulates the naming scheme used for the resources which the Cluster Operator manages for a KafkaBridge cluster.
  • Method Details

    • componentName

      public static String componentName(String clusterName)
      Returns the name of the Kafka Bridge Deployment for a KafkaBridge cluster of the given name. This Deployment will only exist if KafkaBridge is deployed by Cluster Operator..
      Parameters:
      clusterName - The metadata.name of the KafkaBridge resource.
      Returns:
      The name of the corresponding Kafka Bridge Deployment.
    • serviceName

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

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

      public static String serviceAccountName(String clusterName)
      Returns the name of the Kafka Bridge ServiceAccount for a KafkaBridge cluster of the given name.
      Parameters:
      clusterName - The metadata.name of the KafkaBridge resource.
      Returns:
      The name of the corresponding Kafka Bridge ServiceAccount.
    • url

      public static String url(String clusterName, String namespace, int port)
      Returns the URL of the Kafka Bridge for a KafkaBridge cluster of the given name.
      Parameters:
      clusterName - The metadata.name of the KafkaBridge resource.
      namespace - The namespace where the KafkaBridge cluster is running.
      port - The port on which the KafkaBridge is available.
      Returns:
      The URL of KafkaBridge.
    • 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.