Package io.strimzi.api.kafka.model
Class KafkaExporterResources
- java.lang.Object
-
- io.strimzi.api.kafka.model.KafkaExporterResources
-
public class KafkaExporterResources extends Object
Encapsulates the naming scheme used for the resources which the Cluster Operator manages for aKafkaExporterinstance.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringdeploymentName(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 Detail
-
deploymentName
public static String deploymentName(String kafkaClusterName)
Returns the name of the Kafka ExporterDeployment.- Parameters:
kafkaClusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding Kafka Exporter
Deployment.
-
serviceAccountName
public static String serviceAccountName(String kafkaClusterName)
Returns the name of the Kafka ExporterServiceAccount.- Parameters:
kafkaClusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding Kafka Exporter
ServiceAccount.
-
serviceName
public static String serviceName(String kafkaClusterName)
Returns the name of the PrometheusService.- Parameters:
kafkaClusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding
Service.
-
secretName
public static String secretName(String clusterName)
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.
-
-