Class CruiseControlResources
java.lang.Object
io.strimzi.api.kafka.model.kafka.cruisecontrol.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 StringcomponentName(String clusterName) Returns the name of the Cruise ControlDeploymentfor aKafkacluster of the given name.static StringconfigMapName(String clusterName) Returns the name of the Cruise ControlConfigMapfor 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
-
componentName
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.
-
configMapName
Returns the name of the Cruise ControlConfigMapfor aKafkacluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaresource.- Returns:
- The name of the corresponding Cruise Control
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.
-