Skip to content

Commit 93e0085

Browse files
committed
Merge remote-tracking branch 'origin/kafbat/203' into kafbat/203
2 parents 40d0dc1 + 9ac181b commit 93e0085

File tree

314 files changed

+6299
-2173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

314 files changed

+6299
-2173
lines changed

.dev/dev_arm64.yaml renamed to .dev/dev.yaml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# This is a compose file designed for arm64/Apple Silicon systems
2-
# To adapt this to x86 please find and replace ".arm64" with empty
3-
4-
# ARM64 supported images for kafka can be found here
5-
# https://hub.docker.com/r/confluentinc/cp-kafka/tags?page=1&name=arm64
6-
---
71
version: '3.8'
82
name: "kafbat-ui-dev"
93

@@ -32,7 +26,7 @@ services:
3226
KAFKA_CLUSTERS_0_AUDIT_CONSOLEAUDITENABLED: 'true'
3327

3428
kafka0:
35-
image: confluentinc/cp-kafka:7.2.1.arm64
29+
image: confluentinc/cp-kafka:7.8.0
3630
hostname: kafka0
3731
container_name: kafka0
3832
ports:
@@ -56,12 +50,10 @@ services:
5650
KAFKA_JMX_PORT: 9997
5751
# KAFKA_JMX_HOSTNAME: localhost # uncomment this line and comment the next one if running with kafka-ui as a jar
5852
KAFKA_JMX_OPTS: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=kafka0 -Dcom.sun.management.jmxremote.rmi.port=9997
59-
volumes:
60-
- ../documentation/compose/scripts/update_run.sh:/tmp/update_run.sh
61-
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'"
53+
CLUSTER_ID: 'MkU3OEVBNTcwNTJENDM2Qk'
6254

6355
schema-registry0:
64-
image: confluentinc/cp-schema-registry:7.2.1.arm64
56+
image: confluentinc/cp-schema-registry:7.8.0
6557
ports:
6658
- 8085:8085
6759
depends_on:
@@ -77,7 +69,7 @@ services:
7769
SCHEMA_REGISTRY_KAFKASTORE_TOPIC: _schemas
7870

7971
kafka-connect0:
80-
image: confluentinc/cp-kafka-connect:7.2.1.arm64
72+
image: confluentinc/cp-kafka-connect:7.8.0
8173
ports:
8274
- 8083:8083
8375
depends_on:
@@ -102,7 +94,7 @@ services:
10294
CONNECT_PLUGIN_PATH: "/usr/share/java,/usr/share/confluent-hub-components,/usr/local/share/kafka/plugins,/usr/share/filestream-connectors"
10395

10496
ksqldb0:
105-
image: confluentinc/ksqldb-server:0.18.0
97+
image: confluentinc/cp-ksqldb-server:7.8.0
10698
depends_on:
10799
- kafka0
108100
- kafka-connect0
@@ -120,7 +112,7 @@ services:
120112
KSQL_CACHE_MAX_BYTES_BUFFERING: 0
121113

122114
kafka-init-topics:
123-
image: confluentinc/cp-kafka:7.2.1.arm64
115+
image: confluentinc/cp-kafka:7.8.0
124116
volumes:
125117
- ../documentation/compose/data/message.json:/data/message.json
126118
depends_on:

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"features": {
77
"ghcr.io/devcontainers/features/java:1": {
88
"version": "none",
9-
"installMaven": "true",
10-
"installGradle": "false"
9+
"installMaven": "false",
10+
"installGradle": "true"
1111
},
1212
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
1313
},

.github/CODEOWNERS

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33

44
# BACKEND
5-
/pom.xml @kafbat/backend
5+
/build.gradle @kafbat/backend
6+
/gradle.properties @kafbat/backend
7+
/settings.gradle @kafbat/backend
8+
/gradle/ @kafbat/backend
69
/contract/ @kafbat/backend
710
/api/ @kafbat/backend
811
/serde-api/ @kafbat/backend

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
github: [kafbat]
2+
open_collective: kafka-ui

.github/dependabot.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22
updates:
33

4-
- package-ecosystem: maven
4+
- package-ecosystem: gradle
55
directory: "/"
66
schedule:
77
interval: weekly
@@ -14,6 +14,23 @@ updates:
1414
- "type/dependencies"
1515
- "scope/backend"
1616

17+
- package-ecosystem: docker
18+
directory: "/api"
19+
schedule:
20+
interval: weekly
21+
time: "10:00"
22+
timezone: Europe/London
23+
reviewers:
24+
- "kafbat/backend"
25+
open-pull-requests-limit: 10
26+
ignore:
27+
- dependency-name: "azul/zulu-openjdk-alpine"
28+
# Limit dependabot pull requests to minor Java upgrades
29+
update-types: ["version-update:semver-major"]
30+
labels:
31+
- "type/dependencies"
32+
- "scope/backend"
33+
1734
- package-ecosystem: npm
1835
directory: "/frontend"
1936
schedule:

.github/workflows/aws_ami_publish.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.github/workflows/backend_main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ on:
44
push:
55
branches: [ "main" ]
66
paths:
7-
- "pom.xml"
7+
- "build.gradle"
8+
- "gradle.properties"
9+
- "settings.gradle"
10+
- "gradle/libs.versions.toml"
11+
812
- "contract/**"
913
- "api/**"
1014
- "serde-api/**"
@@ -19,7 +23,7 @@ concurrency:
1923
cancel-in-progress: true
2024

2125
jobs:
22-
build:
26+
build-and-test:
2327
uses: ./.github/workflows/backend_tests.yml
2428
with:
2529
event_name: ${{ github.event_name }}

.github/workflows/backend_pr.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ on:
55
pull_request_target:
66
types: [ "opened", "reopened", "synchronize" ]
77
paths:
8-
- "pom.xml"
8+
- "build.gradle"
9+
- "gradle.properties"
10+
- "settings.gradle"
11+
- "gradle/libs.versions.toml"
12+
913
- "contract/**"
1014
- "api/**"
1115
- "serde-api/**"
@@ -20,7 +24,7 @@ concurrency:
2024
cancel-in-progress: true
2125

2226
jobs:
23-
build:
27+
build-and-test:
2428
uses: ./.github/workflows/backend_tests.yml
2529
with:
2630
event_name: ${{ github.event_name }}

.github/workflows/backend_tests.yml

Lines changed: 6 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Backend: build and test"
1+
name: "Backend: tests & sonar"
22

33
on:
44
workflow_call:
@@ -14,7 +14,7 @@ permissions:
1414
pull-requests: write
1515

1616
jobs:
17-
build-and-test:
17+
tests:
1818
runs-on: ubuntu-latest
1919
steps:
2020

@@ -28,42 +28,10 @@ jobs:
2828
- name: Set up JDK
2929
uses: actions/setup-java@v4
3030
with:
31-
java-version: '17'
31+
java-version: '21'
3232
distribution: 'zulu'
33-
cache: 'maven'
33+
cache: 'gradle'
3434

35-
- name: Cache SonarCloud packages
36-
uses: actions/cache@v4
37-
with:
38-
path: ~/.sonar/cache
39-
key: ${{ runner.os }}-sonar
40-
restore-keys: ${{ runner.os }}-sonar
41-
42-
- name: "Pull request: Maven tests & sonar"
43-
if: ${{ inputs.event_name == 'pull_request' || inputs.event_name == 'pull_request_target' }}
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_BACKEND }}
47-
HEAD_REF: ${{ github.head_ref }}
48-
BASE_REF: ${{ github.base_ref }}
49-
SKIP_SONAR: "true" # TODO remove when public
50-
run: |
51-
./mvnw -B -ntp versions:set -DnewVersion=${{ github.event.pull_request.head.sha }}
52-
./mvnw -B -V -ntp verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
53-
-Dsonar.skip=${SKIP_SONAR} \
54-
-Dsonar.projectKey=io.kafbat:kafbat-ui_backend \
55-
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
56-
-Dsonar.pullrequest.branch=$HEAD_REF \
57-
-Dsonar.pullrequest.base=$BASE_REF
58-
59-
- name: "Main: Maven tests & sonar"
60-
if: ${{ inputs.event_name == 'push' }}
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_BACKEND }}
64-
SKIP_SONAR: "true" # TODO remove when public
35+
- name: "Tests"
6536
run: |
66-
./mvnw -B -ntp versions:set -DnewVersion=$GITHUB_SHA
67-
./mvnw -B -V -ntp verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
68-
-Dsonar.skip=${SKIP_SONAR} \
69-
-Dsonar.projectKey=io.kafbat:kafbat-ui_backend
37+
./gradlew :api:test --info

.github/workflows/block_merge.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,12 @@ jobs:
1010
with:
1111
mode: exactly
1212
count: 0
13-
labels: "status/blocked, status/needs-attention, status/on-hold, status/pending, status/triage, status/pending-backend, status/pending-frontend, status/pending-QA"
13+
labels: >
14+
status/blocked,
15+
status/needs-attention,
16+
status/on-hold,
17+
status/pending,
18+
status/triage,
19+
status/pending-backend,
20+
status/pending-frontend,
21+
status/pending-QA

.github/workflows/branch-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
- name: Set up JDK
3030
uses: actions/setup-java@v4
3131
with:
32-
java-version: '17'
32+
java-version: '21'
3333
distribution: 'zulu'
34-
cache: 'maven'
34+
cache: 'gradle'
3535
- name: Build
3636
id: build
3737
run: |
@@ -69,7 +69,7 @@ jobs:
6969
push: true
7070
tags: 297478128798.dkr.ecr.eu-central-1.amazonaws.com/kafka-ui:${{ steps.extract_branch.outputs.tag }}
7171
build-args: |
72-
JAR_FILE=api-${{ steps.build.outputs.version }}.jar
72+
JAR_FILE=build/libs/api-${{ steps.build.outputs.version }}.jar
7373
cache-from: type=local,src=/tmp/.buildx-cache
7474
cache-to: type=local,dest=/tmp/.buildx-cache
7575
outputs:

.github/workflows/build-public-image.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ on:
66
types: ['labeled']
77

88
permissions:
9+
id-token: write
910
contents: read
11+
pull-requests: write
1012

1113
jobs:
1214
build:
@@ -25,9 +27,9 @@ jobs:
2527
- name: Set up JDK
2628
uses: actions/setup-java@v4
2729
with:
28-
java-version: '17'
30+
java-version: '21'
2931
distribution: 'zulu'
30-
cache: 'maven'
32+
cache: 'gradle'
3133
- name: Build
3234
id: build
3335
run: |
@@ -47,12 +49,11 @@ jobs:
4749
key: ${{ runner.os }}-buildx-${{ github.sha }}
4850
restore-keys: |
4951
${{ runner.os }}-buildx-
50-
- name: Configure AWS credentials for Kafka-UI account
52+
- name: Configure AWS Credentials
5153
uses: aws-actions/configure-aws-credentials@v4
5254
with:
53-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
54-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
5555
aws-region: us-east-1
56+
role-to-assume: ${{ secrets.AWS_ROLE }}
5657
- name: Login to Amazon ECR
5758
id: login-ecr
5859
uses: aws-actions/amazon-ecr-login@v2
@@ -65,16 +66,16 @@ jobs:
6566
builder: ${{ steps.buildx.outputs.name }}
6667
context: api
6768
push: true
68-
tags: public.ecr.aws/kafbat/kafka-ui-custom-build:${{ steps.extract_branch.outputs.tag }}
69+
tags: ${{ vars.ECR_REGISTRY }}/${{ github.repository }}:${{ steps.extract_branch.outputs.tag }}
6970
build-args: |
70-
JAR_FILE=api-${{ steps.build.outputs.version }}.jar
71+
JAR_FILE=build/libs/api-${{ steps.build.outputs.version }}.jar
7172
cache-from: type=local,src=/tmp/.buildx-cache
7273
cache-to: type=local,dest=/tmp/.buildx-cache
7374
- name: make comment with private deployment link
7475
uses: peter-evans/create-or-update-comment@v4
7576
with:
7677
issue-number: ${{ github.event.pull_request.number }}
7778
body: |
78-
Image published at public.ecr.aws/kafbat/kafka-ui-custom-build:${{ steps.extract_branch.outputs.tag }}
79+
Image published at ${{ vars.ECR_REGISTRY }}/${{ github.repository }}:${{ steps.extract_branch.outputs.tag }}
7980
outputs:
8081
tag: ${{ steps.extract_branch.outputs.tag }}

0 commit comments

Comments
 (0)