Class KafkaExporterResources
java.lang.Object
io.strimzi.api.kafka.model.kafka.exporter.KafkaExporterResources
Encapsulates the naming scheme used for the resources which the Cluster Operator manages for a
KafkaExporter instance.-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcomponentName(String kafkaClusterName) Returns the name of the Kafka ExporterDeployment.static StringsecretName(String clusterName) Returns the name of the Kafka ExporterSecretfor aKafkacluster of the given name.static StringserviceAccountName(String kafkaClusterName) Returns the name of the Kafka ExporterServiceAccount.static StringserviceName(String kafkaClusterName) Returns the name of the PrometheusService.
-
Method Details
-
componentName
Returns the name of the Kafka ExporterDeployment.- Parameters:
kafkaClusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding Kafka Exporter
Deployment.
-
serviceAccountName
Returns the name of the Kafka ExporterServiceAccount.- Parameters:
kafkaClusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding Kafka Exporter
ServiceAccount.
-
serviceName
Returns the name of the PrometheusService.- Parameters:
kafkaClusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding
Service.
-
secretName
Returns the name of the Kafka ExporterSecretfor aKafkacluster of the given name. ThisSecretwill only exist ifKafka.spec.kafkaExporteris configured in theKafkaresource with the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding Kafka Exporter
Secret.
-