Package io.strimzi.api.kafka.model
Class KafkaBridgeResources
- java.lang.Object
-
- io.strimzi.api.kafka.model.KafkaBridgeResources
-
public class KafkaBridgeResources extends Object
Encapsulates the naming scheme used for the resources which the Cluster Operator manages for aKafkaBridgecluster.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringdeploymentName(String clusterName)Returns the name of the Kafka BridgeDeploymentfor aKafkaBridgecluster of the given name.static StringmetricsAndLogConfigMapName(String clusterName)Returns the name of the Kafka Bridge metrics and logConfigMapfor aKafkaBridgecluster of the given name.static StringserviceAccountName(String clusterName)Returns the name of the Kafka BridgeServiceAccountfor aKafkaBridgecluster of the given name.static StringserviceName(String clusterName)Returns the name of the HTTP RESTServicefor aKafkaBridgecluster of the given name.static Stringurl(String clusterName, String namespace, int port)Returns the URL of the Kafka Bridge for aKafkaBridgecluster of the given name.
-
-
-
Method Detail
-
deploymentName
public static String deploymentName(String clusterName)
Returns the name of the Kafka BridgeDeploymentfor aKafkaBridgecluster of the given name. ThisDeploymentwill only exist ifKafkaBridgeis deployed by Cluster Operator..- Parameters:
clusterName- Themetadata.nameof theKafkaBridgeresource.- Returns:
- The name of the corresponding Kafka Bridge
Deployment.
-
serviceName
public static String serviceName(String clusterName)
Returns the name of the HTTP RESTServicefor aKafkaBridgecluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaBridgeresource.- Returns:
- The name of the corresponding bootstrap
Service.
-
metricsAndLogConfigMapName
public static String metricsAndLogConfigMapName(String clusterName)
Returns the name of the Kafka Bridge metrics and logConfigMapfor aKafkaBridgecluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaBridgeresource.- 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 BridgeServiceAccountfor aKafkaBridgecluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaBridgeresource.- 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 aKafkaBridgecluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaBridgeresource.namespace- The namespace where theKafkaBridgecluster is running.port- The port on which theKafkaBridgeis available.- Returns:
- The URL of
KafkaBridge.
-
-