Skip to content

Commit

Permalink
Merge branch 'main' into issues/729
Browse files Browse the repository at this point in the history
  • Loading branch information
zambrinf authored Jan 14, 2025
2 parents 8208a8e + aaac4d7 commit ae68966
Show file tree
Hide file tree
Showing 34 changed files with 38 additions and 132 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/frontend_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install node
uses: actions/[email protected]
with:
node-version: "18.17.1"
node-version: "22.12.0"
cache: "pnpm"
cache-dependency-path: "./frontend/pnpm-lock.yaml"

Expand Down
1 change: 0 additions & 1 deletion api/src/main/java/io/kafbat/ui/model/BrokerMetrics.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.kafbat.ui.model;

import io.kafbat.ui.model.MetricDTO;
import java.util.List;
import lombok.Builder;
import lombok.Data;
Expand Down
12 changes: 2 additions & 10 deletions api/src/main/java/io/kafbat/ui/model/CleanupPolicy.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,10 @@ public enum CleanupPolicy {
this.policies = policies;
}

public String getPolicy() {
return policies.get(0);
}

public static CleanupPolicy fromString(String string) {
return Arrays.stream(CleanupPolicy.values())
.filter(v ->
v.policies.stream().anyMatch(
s -> s.equals(string.replace(" ", "")
)
)
).findFirst()
.filter(v -> v.policies.stream().anyMatch(s -> s.equals(string.replace(" ", ""))))
.findFirst()
.orElse(UNKNOWN);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.kafbat.ui.model;


import java.util.List;
import lombok.Builder;
import lombok.Data;
Expand All @@ -17,13 +16,13 @@ public class InternalBrokerConfig {
private final List<ConfigEntry.ConfigSynonym> synonyms;

public static InternalBrokerConfig from(ConfigEntry configEntry, boolean readOnlyCluster) {
InternalBrokerConfig.InternalBrokerConfigBuilder builder = InternalBrokerConfig.builder()
return InternalBrokerConfig.builder()
.name(configEntry.name())
.value(configEntry.value())
.source(configEntry.source())
.isReadOnly(readOnlyCluster || configEntry.isReadOnly())
.isSensitive(configEntry.isSensitive())
.synonyms(configEntry.synonyms());
return builder.build();
.synonyms(configEntry.synonyms())
.build();
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
package io.kafbat.ui.model;

import io.kafbat.ui.model.MetricDTO;
import io.kafbat.ui.model.ServerStatusDTO;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import javax.annotation.Nullable;
import lombok.Builder;
import lombok.Data;


@Data
@Builder(toBuilder = true)
public class InternalClusterMetrics {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package io.kafbat.ui.model;

import com.google.common.base.Throwables;
import io.kafbat.ui.model.BrokerDiskUsageDTO;
import io.kafbat.ui.model.MetricsCollectionErrorDTO;
import io.kafbat.ui.model.ServerStatusDTO;
import java.math.BigDecimal;
import java.util.List;
import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ public class InternalPartition {
private final Long segmentSize;
private final Integer segmentCount;


}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import lombok.Value;
import org.apache.kafka.common.TopicPartition;


public class InternalPartitionsOffsets {

@Value
Expand Down
13 changes: 0 additions & 13 deletions api/src/main/java/io/kafbat/ui/model/InternalSegmentSizeDto.java

This file was deleted.

3 changes: 0 additions & 3 deletions api/src/main/java/io/kafbat/ui/model/InternalTopic.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.kafbat.ui.model;

import io.kafbat.ui.config.ClustersProperties;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
Expand All @@ -16,8 +15,6 @@
@Builder(toBuilder = true)
public class InternalTopic {

ClustersProperties clustersProperties;

// from TopicDescription
private final String name;
private final boolean internal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import lombok.Data;
import org.apache.kafka.clients.admin.ConfigEntry;


@Data
@Builder
public class InternalTopicConfig {
Expand Down
1 change: 0 additions & 1 deletion api/src/main/java/io/kafbat/ui/model/Metrics.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import lombok.Builder;
import lombok.Value;


@Builder
@Value
public class Metrics {
Expand Down
1 change: 0 additions & 1 deletion api/src/main/java/io/kafbat/ui/model/Statistics.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.kafbat.ui.model;

import io.kafbat.ui.model.ServerStatusDTO;
import io.kafbat.ui.service.ReactiveAdminClient;
import java.util.List;
import java.util.Map;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion documentation/compose/auth-context.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
SPRING_SECURITY_USER_PASSWORD: pass

kafka:
image: confluentinc/cp-kafka:7.2.1
image: confluentinc/cp-kafka:7.8.0
hostname: kafka
container_name: kafka
ports:
Expand Down
6 changes: 3 additions & 3 deletions documentation/compose/cluster-sr-auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '2'
services:

kafka1:
image: confluentinc/cp-kafka:7.2.1
image: confluentinc/cp-kafka:7.8.0
hostname: kafka1
container_name: kafka1
ports:
Expand Down Expand Up @@ -31,7 +31,7 @@ services:
command: "bash -c 'if [ ! -f /tmp/update_run.sh ]; then echo \"ERROR: Did you forget the update_run.sh file that came with this docker-compose.yml file?\" && exit 1 ; else /tmp/update_run.sh && /etc/confluent/docker/run ; fi'"

schemaregistry1:
image: confluentinc/cp-schema-registry:7.2.1
image: confluentinc/cp-schema-registry:7.8.0
ports:
- 18085:8085
depends_on:
Expand All @@ -55,7 +55,7 @@ services:
SCHEMA_REGISTRY_KAFKASTORE_TOPIC: _schemas

kafka-init-topics:
image: confluentinc/cp-kafka:7.2.1
image: confluentinc/cp-kafka:7.8.0
volumes:
- ./data/message.json:/data/message.json
depends_on:
Expand Down
12 changes: 6 additions & 6 deletions documentation/compose/kafbat-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
DYNAMIC_CONFIG_ENABLED: 'true'

kafka0:
image: confluentinc/cp-kafka:7.2.1
image: confluentinc/cp-kafka:7.8.0
hostname: kafka0
container_name: kafka0
ports:
Expand Down Expand Up @@ -55,7 +55,7 @@ services:
command: "bash -c 'if [ ! -f /tmp/update_run.sh ]; then echo \"ERROR: Did you forget the update_run.sh file that came with this docker-compose.yml file?\" && exit 1 ; else /tmp/update_run.sh && /etc/confluent/docker/run ; fi'"

kafka1:
image: confluentinc/cp-kafka:7.2.1
image: confluentinc/cp-kafka:7.8.0
hostname: kafka1
container_name: kafka1
ports:
Expand Down Expand Up @@ -83,7 +83,7 @@ services:
command: "bash -c 'if [ ! -f /tmp/update_run.sh ]; then echo \"ERROR: Did you forget the update_run.sh file that came with this docker-compose.yml file?\" && exit 1 ; else /tmp/update_run.sh && /etc/confluent/docker/run ; fi'"

schemaregistry0:
image: confluentinc/cp-schema-registry:7.2.1
image: confluentinc/cp-schema-registry:7.8.0
ports:
- 8085:8085
depends_on:
Expand All @@ -99,7 +99,7 @@ services:
SCHEMA_REGISTRY_KAFKASTORE_TOPIC: _schemas

schemaregistry1:
image: confluentinc/cp-schema-registry:7.2.1
image: confluentinc/cp-schema-registry:7.8.0
ports:
- 18085:8085
depends_on:
Expand All @@ -115,7 +115,7 @@ services:
SCHEMA_REGISTRY_KAFKASTORE_TOPIC: _schemas

kafka-connect0:
image: confluentinc/cp-kafka-connect:7.2.1
image: confluentinc/cp-kafka-connect:7.8.0
ports:
- 8083:8083
depends_on:
Expand All @@ -140,7 +140,7 @@ services:
CONNECT_PLUGIN_PATH: "/usr/share/java,/usr/share/confluent-hub-components"

kafka-init-topics:
image: confluentinc/cp-kafka:7.2.1
image: confluentinc/cp-kafka:7.8.0
volumes:
- ./data/message.json:/data/message.json
depends_on:
Expand Down
6 changes: 3 additions & 3 deletions documentation/compose/kafka-ssl-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ services:
- ./ssl/kafka.keystore.jks:/kafka.keystore.jks

kafka0:
image: confluentinc/cp-kafka:7.2.1
image: confluentinc/cp-kafka:7.8.0
hostname: kafka0
container_name: kafka0
ports:
Expand Down Expand Up @@ -80,7 +80,7 @@ services:
command: "bash -c 'if [ ! -f /tmp/update_run.sh ]; then echo \"ERROR: Did you forget the update_run.sh file that came with this docker-compose.yml file?\" && exit 1 ; else /tmp/update_run.sh && /etc/confluent/docker/run ; fi'"

schemaregistry0:
image: confluentinc/cp-schema-registry:7.2.1
image: confluentinc/cp-schema-registry:7.8.0
depends_on:
- kafka0
environment:
Expand Down Expand Up @@ -111,7 +111,7 @@ services:
- ./ssl/kafka.keystore.jks:/kafka.keystore.jks

kafka-connect0:
image: confluentinc/cp-kafka-connect:7.2.1
image: confluentinc/cp-kafka-connect:7.8.0
ports:
- 8083:8083
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion documentation/compose/kafka-ssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
- ./ssl/kafka.keystore.jks:/kafka.keystore.jks

kafka:
image: confluentinc/cp-kafka:7.2.1
image: confluentinc/cp-kafka:7.8.0
hostname: kafka
container_name: kafka
ports:
Expand Down
6 changes: 3 additions & 3 deletions documentation/compose/kafka-zookeeper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '2'
services:

zookeeper:
image: confluentinc/cp-zookeeper:7.2.1
image: confluentinc/cp-zookeeper:7.8.0
hostname: zookeeper
container_name: zookeeper
ports:
Expand All @@ -13,7 +13,7 @@ services:
ZOOKEEPER_TICK_TIME: 2000

kafka:
image: confluentinc/cp-server:7.2.1
image: confluentinc/cp-server:7.8.0
hostname: kafka
container_name: kafka
depends_on:
Expand All @@ -36,7 +36,7 @@ services:
KAFKA_JMX_HOSTNAME: kafka

kafka-init-topics:
image: confluentinc/cp-kafka:7.2.1
image: confluentinc/cp-kafka:7.8.0
volumes:
- ./data/message.json:/data/message.json
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion documentation/compose/ui-acl-with-zk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
- 2181:2181

kafka:
image: confluentinc/cp-kafka:7.2.1
image: confluentinc/cp-kafka:7.8.0
hostname: kafka
container_name: kafka
ports:
Expand Down
Loading

0 comments on commit ae68966

Please sign in to comment.