Class KafkaConnectResources
java.lang.Object
io.strimzi.api.kafka.model.connect.KafkaConnectResources
Encapsulates the naming scheme used for the resources which the Cluster Operator manages for a
KafkaConnect cluster.-
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildConfigName(String clusterName) Returns the name of the Kafka ConnectBuildConfigfor aKafkaConnectbuild that builds the new image.static StringReturns the name of the Kafka ConnectBuildfor aKafkaConnectbuild that builds the new image.static StringbuildPodName(String clusterName) Returns the name of the Kafka ConnectPodfor aKafkaConnectbuild that builds the new image.static StringbuildServiceAccountName(String clusterName) Returns the name of the Kafka Connect BuildServiceAccountfor aKafkaConnectcluster of the given name.static StringcomponentName(String clusterName) Returns the name of the Kafka ConnectDeploymentfor aKafkaConnectcluster of the given name.static StringconfigStorageTopicOffsets(String clusterName) Returns the name of the Kafka Connect config offsets for aKafkaConnectcluster of the given name.static StringconfigStorageTopicStatus(String clusterName) Returns the name of the Kafka Connect config status for aKafkaConnectcluster of the given name.static StringdockerFileConfigMapName(String clusterName) Returns the name of the Kafka ConnectConfigMapfor aKafkaConnectbuild which contains the Dockerfile.static StringinitContainerClusterRoleBindingName(String clusterName, String namespace) Get the name of the resource init container role binding given the name of thenamespaceandcluster.static StringjmxSecretName(String clusterName) Returns the name of the Kafka Secret with JMX credentials.static StringmetricsAndLogConfigMapName(String clusterName) Returns the name of the Kafka Connect metrics and logConfigMapfor aKafkaConnectcluster 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 ConnectServiceAccountfor aKafkaConnectcluster of the given name.static StringserviceName(String clusterName) Returns the name of the HTTP RESTServicefor aKafkaConnectcluster of the given name.static StringReturns the URL of the Kafka Connect REST API for aKafkaConnectcluster of the given name.
-
Method Details
-
componentName
Returns the name of the Kafka ConnectDeploymentfor aKafkaConnectcluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaConnectresource.- Returns:
- The name of the corresponding Kafka Connect
Deployment.
-
serviceAccountName
Returns the name of the Kafka ConnectServiceAccountfor aKafkaConnectcluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaConnectresource.- Returns:
- The name of the corresponding Kafka Connect
ServiceAccount.
-
serviceName
Returns the name of the HTTP RESTServicefor aKafkaConnectcluster of the given name. This returns only the name of the service without any namespace. Therefore it cannot be used to connect to the Connect REST API. USe thequalifiedServiceNameorurlmethods instead.- Parameters:
clusterName- Themetadata.nameof theKafkaConnectresource.- Returns:
- The name of the corresponding
Service.
-
jmxSecretName
Returns the name of the Kafka Secret with JMX credentials.- Parameters:
clusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding Kafka JMX Secret.
-
metricsAndLogConfigMapName
Returns the name of the Kafka Connect metrics and logConfigMapfor aKafkaConnectcluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaConnectresource.- Returns:
- The name of the corresponding KafkaConnect metrics and log
ConfigMap.
-
configStorageTopicOffsets
Returns the name of the Kafka Connect config offsets for aKafkaConnectcluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaConnectresource.- Returns:
- The name of the corresponding KafkaConnect config offsets value.
-
configStorageTopicStatus
Returns the name of the Kafka Connect config status for aKafkaConnectcluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaConnectresource.- Returns:
- The name of the corresponding KafkaConnect config status value.
-
qualifiedServiceName
Returns qualified name of the service which works across different namespaces.- Parameters:
clusterName- Name of the Connect CRnamespace- Namespace of the Connect deployment- Returns:
- qualified namespace in the format "<service-name>.<namespace>.svc"
-
url
Returns the URL of the Kafka Connect REST API for aKafkaConnectcluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaConnectresource.namespace- The namespace whereKafkaConnectcluster is running.port- The port on which theKafkaConnectAPI is available.- Returns:
- The base URL of the
KafkaConnectREST API.
-
initContainerClusterRoleBindingName
Get the name of the resource init container role binding given the name of thenamespaceandcluster.- Parameters:
clusterName- The cluster name.namespace- The namespace.- Returns:
- The name of the init container's cluster role binding.
-
dockerFileConfigMapName
Returns the name of the Kafka ConnectConfigMapfor aKafkaConnectbuild which contains the Dockerfile.- Parameters:
clusterName- Themetadata.nameof theKafkaConnectresource.- Returns:
- The name of the corresponding Kafka Connect
ConfigMap.
-
buildPodName
Returns the name of the Kafka ConnectPodfor aKafkaConnectbuild that builds the new image.- Parameters:
clusterName- Themetadata.nameof theKafkaConnectresource.- Returns:
- The name of the corresponding Kafka Connect build
Pod.
-
buildServiceAccountName
Returns the name of the Kafka Connect BuildServiceAccountfor aKafkaConnectcluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaConnectresource.- Returns:
- The name of the corresponding Kafka Connect Build
ServiceAccount.
-
buildConfigName
Returns the name of the Kafka ConnectBuildConfigfor aKafkaConnectbuild that builds the new image.- Parameters:
clusterName- Themetadata.nameof theKafkaConnectresource.- Returns:
- The name of the corresponding Kafka Connect
BuildConfig.
-
buildName
Returns the name of the Kafka ConnectBuildfor aKafkaConnectbuild that builds the new image.- Parameters:
clusterName- Themetadata.nameof theKafkaConnectresource.buildVersion- The version of the build for which the name should be generated- Returns:
- The name of the corresponding Kafka Connect
BuildConfigBuild.
-