Class KafkaBridgeResources


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

      • deploymentName

        public static String deploymentName​(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.