Class KafkaBridgeResources
java.lang.Object
io.strimzi.api.kafka.model.bridge.KafkaBridgeResources
Encapsulates the naming scheme used for the resources which the Cluster Operator manages for a
KafkaBridge cluster.-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcomponentName(String clusterName) Returns the name of the Kafka BridgeDeploymentfor aKafkaBridgecluster of the given name.static StringinitContainerClusterRoleBindingName(String clusterName, String namespace) Get the name of the init container role binding given the name of theclusterandnamespace.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 StringReturns the URL of the Kafka Bridge for aKafkaBridgecluster of the given name.
-
Method Details
-
componentName
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
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
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
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
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.
-
initContainerClusterRoleBindingName
Get the name of the init container role binding given the name of theclusterandnamespace.- Parameters:
clusterName- The cluster name.namespace- The namespace.- Returns:
- The name of the init container's cluster role binding.
-