Class KafkaMirrorMaker2Resources
java.lang.Object
io.strimzi.api.kafka.model.mirrormaker2.KafkaMirrorMaker2Resources
Encapsulates the naming scheme used for the resources which the Cluster Operator manages for a
KafkaMirrorMaker2 cluster.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcomponentName(String clusterName) Returns the name of the Kafka MirrorMaker 2Deploymentfor aKafkaMirrorMaker2cluster 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 MirrorMaker 2 metrics and logConfigMapfor aKafkaMirrorMaker2cluster of the given name.static StringqualifiedServiceName(String clusterName, String namespace) Returns qualified name of the service which works across different namespaces.static StringserviceAccountName(String clusterName) Returns the name of the Kafka MirrorMaker 2ServiceAccountfor aKafkaMirrorMaker2cluster of the given name.static StringserviceName(String clusterName) Returns the name of the HTTP RESTServicefor aKafkaMirrorMaker2cluster of the given name.static StringReturns the URL of the Kafka MirrorMaker 2 REST API for aKafkaMirrorMaker2cluster of the given name.
-
Constructor Details
-
KafkaMirrorMaker2Resources
public KafkaMirrorMaker2Resources()
-
-
Method Details
-
componentName
Returns the name of the Kafka MirrorMaker 2Deploymentfor aKafkaMirrorMaker2cluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaMirrorMaker2resource.- Returns:
- The name of the corresponding Kafka MirrorMaker 2
Deployment.
-
serviceAccountName
Returns the name of the Kafka MirrorMaker 2ServiceAccountfor aKafkaMirrorMaker2cluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaMirrorMaker2resource.- Returns:
- The name of the corresponding Kafka MirrorMaker 2
ServiceAccount.
-
serviceName
Returns the name of the HTTP RESTServicefor aKafkaMirrorMaker2cluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaMirrorMaker2resource.- Returns:
- The name of the corresponding
Service.
-
metricsAndLogConfigMapName
Returns the name of the Kafka MirrorMaker 2 metrics and logConfigMapfor aKafkaMirrorMaker2cluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaMirrorMaker2resource.- Returns:
- The name of the corresponding KafkaMirrorMaker2 metrics and log
ConfigMap.
-
qualifiedServiceName
Returns qualified name of the service which works across different namespaces.- Parameters:
clusterName- Themetadata.nameof theKafkaMirrorMaker2resource.namespace- Namespace of the Connect deployment- Returns:
- qualified namespace in the format "<service-name>.<namespace>.svc"
-
url
Returns the URL of the Kafka MirrorMaker 2 REST API for aKafkaMirrorMaker2cluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaMirrorMaker2resource.namespace- The namespace whereKafkaMirrorMaker2cluster is running.port- The port on which theKafkaMirrorMaker2API is available.- Returns:
- The base URL of the
KafkaMirrorMaker2REST API.
-
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.
-