Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
Signed-off-by: Lixin Yao <lixin_yao@apple.com>
  • Loading branch information
Lixin Yao committed Feb 22, 2024
1 parent 7eb300b commit d350b3a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -859,8 +859,8 @@ public KafkaBrokerConfigurationBuilder withTieredStorage(String clusterName, Tie
writer.println("rlmm.config.remote.log.metadata.common.client.ssl.keystore.password=${CERTS_STORE_PASSWORD}");
writer.println("rlmm.config.remote.log.metadata.common.client.ssl.truststore.type=PKCS12");
writer.println("# RSM configs set by the operator and by the user");
if (tieredStorage instanceof TieredStorageCustom) {
RemoteStorageManager rsm = ((TieredStorageCustom) tieredStorage).getRemoteStorageManager();
if (tieredStorage instanceof TieredStorageCustom customTieredStorage) {
RemoteStorageManager rsm = customTieredStorage.getRemoteStorageManager();
writer.println("remote.log.storage.manager.class.name=" + rsm.getClassName());
writer.println("remote.log.storage.manager.class.path=" + rsm.getClassPath());
writer.println("remote.log.storage.manager.impl.prefix=rsm.config.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1680,8 +1680,8 @@ private String generatePerBrokerConfiguration(NodeRef node, KafkaPool pool, Map<
)
.withAuthorization(cluster, authorization)
.withCruiseControl(cluster, ccMetricsReporter, node.broker())
.withUserConfiguration(configuration, node.broker() && ccMetricsReporter != null)
.withTieredStorage(cluster, tieredStorage);
.withTieredStorage(cluster, tieredStorage)
.withUserConfiguration(configuration, node.broker() && ccMetricsReporter != null);

if (useKRaft) {
builder.withKRaft(cluster, namespace, pool.processRoles, nodes());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
To configure the tiered storage feature, set the `type` property to `custom`.

Custom tiered storage allows for custom RemoteStorageManager configuration to be used. By default Strimzi will use the `TopicBasedRemoteLogMetadataManager` for RLMM configuration.
Custom tiered storage allows for custom RemoteStorageManager configuration to be used. By default Strimzi will use the `TopicBasedRemoteLogMetadataManager` for RLMM configuration. Users need to add the tiered storage plugin to the image first by building a custom container image.

.Example custom tiered storage configuration
[source,yaml,subs="attributes+"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1847,6 +1847,32 @@ spec:
description: Metadata applied to the resource.
description: Template for Kafka `StrimziPodSet` resource.
description: Template for Kafka cluster resources. The template allows users to specify how the Kubernetes resources are generated.
tieredStorage:
type: object
properties:
remoteStorageManager:
type: object
properties:
className:
type: string
description: The class name for the RSM class.
classPath:
type: string
description: The class path for the RSM class.
configs:
additionalProperties:
type: string
type: object
description: The additional configuration map for the remoteStorageManager.
description: Configuration for the remoteStorageManager.
type:
type: string
enum:
- custom
description: "Storage type, must be either 'custom'."
required:
- type
description: Configure tieredStorage for Kafka brokers.
required:
- listeners
description: Configuration of the Kafka cluster.
Expand Down

0 comments on commit d350b3a

Please sign in to comment.