Package io.strimzi.api.kafka.model
Class CruiseControlResources
java.lang.Object
io.strimzi.api.kafka.model.CruiseControlResources
Encapsulates the naming scheme used for the resources which the Cluster Operator manages for a
CruiseControl cluster.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringapiSecretName(String clusterName) Returns the name of the Cruise ControlSecretused for API authorization for aKafkacluster of the given name.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 StringnetworkPolicyName(String clusterName) Returns the name of the Cruise ControlNetworkPolicyfor 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.
-
Constructor Details
-
CruiseControlResources
public CruiseControlResources()
-
-
Method Details
-
deploymentName
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
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
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
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"
-
apiSecretName
Returns the name of the Cruise ControlSecretused for API authorization for 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.
-
secretName
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
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.
-
networkPolicyName
Returns the name of the Cruise ControlNetworkPolicyfor aKafkacluster of the given name. ThisNetworkPolicywill 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
NetworkPolicy.
-