Package io.strimzi.api.kafka.model
Class CruiseControlResources
- java.lang.Object
-
- io.strimzi.api.kafka.model.CruiseControlResources
-
public class CruiseControlResources extends Object
Encapsulates the naming scheme used for the resources which the Cluster Operator manages for aCruiseControlcluster.
-
-
Constructor Summary
Constructors Constructor Description CruiseControlResources()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringdeploymentName(String clusterName)Returns the name of the Cruise ControlDeploymentfor aKafkacluster of the given name.static StringlogAndMetricsConfigMapName(String clusterName)Returns the name of the Cruise Control logConfigMapfor aKafkacluster of the given name.static StringqualifiedServiceName(String clusterName, String namespace)Returns qualified name of the service which works across different namespaces.static StringsecretName(String clusterName)Returns the name of the Cruise ControlSecretfor aKafkacluster of the given name.static StringserviceAccountName(String clusterName)Returns the name of the Cruise ControlServiceAccountfor aKafkacluster of the given name.static StringserviceName(String clusterName)Returns the name of the Cruise ControlServicefor aKafkacluster of the given name.
-
-
-
Method Detail
-
deploymentName
public static String deploymentName(String clusterName)
Returns the name of the Cruise ControlDeploymentfor aKafkacluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding Cruise Control
Deployment.
-
serviceAccountName
public static String serviceAccountName(String clusterName)
Returns the name of the Cruise ControlServiceAccountfor aKafkacluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding Cruise Control
ServiceAccount.
-
serviceName
public static String serviceName(String clusterName)
Returns the name of the Cruise ControlServicefor aKafkacluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding Cruise Control
Service.
-
qualifiedServiceName
public static String qualifiedServiceName(String clusterName, String namespace)
Returns qualified name of the service which works across different namespaces.- Parameters:
clusterName- Themetadata.nameof theKafkaresource.namespace- Namespace of the Cruise Control deployment- Returns:
- qualified namespace in the format "<service-name>.<namespace>.svc"
-
secretName
public static String secretName(String clusterName)
Returns the name of the Cruise ControlSecretfor aKafkacluster of the given name. ThisSecretwill only exist ifKafka.spec.cruiseControlis configured in theKafkaresource with the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding Cruise Control
Secret.
-
logAndMetricsConfigMapName
public static String logAndMetricsConfigMapName(String clusterName)
Returns the name of the Cruise Control logConfigMapfor aKafkacluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding Cruise Control log
ConfigMap.
-
-