Class KafkaExporterResources

java.lang.Object
io.strimzi.api.kafka.model.kafka.exporter.KafkaExporterResources

public class KafkaExporterResources extends Object
Encapsulates the naming scheme used for the resources which the Cluster Operator manages for a KafkaExporter instance.
  • Method Details

    • componentName

      public static String componentName(String kafkaClusterName)
      Returns the name of the Kafka Exporter Deployment.
      Parameters:
      kafkaClusterName - The metadata.name of the Kafka resource.
      Returns:
      The name of the corresponding Kafka Exporter Deployment.
    • serviceAccountName

      public static String serviceAccountName(String kafkaClusterName)
      Returns the name of the Kafka Exporter ServiceAccount.
      Parameters:
      kafkaClusterName - The metadata.name of the Kafka resource.
      Returns:
      The name of the corresponding Kafka Exporter ServiceAccount.
    • serviceName

      public static String serviceName(String kafkaClusterName)
      Returns the name of the Prometheus Service.
      Parameters:
      kafkaClusterName - The metadata.name of the Kafka resource.
      Returns:
      The name of the corresponding Service.
    • secretName

      public static String secretName(String clusterName)
      Returns the name of the Kafka Exporter Secret for a Kafka cluster of the given name. This Secret will only exist if Kafka.spec.kafkaExporter is configured in the Kafka resource with the given name.
      Parameters:
      clusterName - The metadata.name of the Kafka resource.
      Returns:
      The name of the corresponding Kafka Exporter Secret.