Skip to content

Commit b66cf77

Browse files
committed
Merge branch '2936-support-patroni-4' into 'main'
Support for Patroni 4 and refactor SGDistributedLogs to use SGCluster Closes #2936 and #1190 See merge request ongresinc/stackgres!1626
2 parents 83025b2 + 53b4b18 commit b66cf77

409 files changed

Lines changed: 4359 additions & 13264 deletions

File tree

Some content is hidden

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

.gitlab-ci/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
--extract restapi-java-test:'stackgres-k8s/src/restapi/target/surefire-reports/TEST-*.xml' \
1515
--extract jobs-java-test:'stackgres-k8s/src/jobs/target/surefire-reports/TEST-*.xml' \
1616
--extract cluster-controller-java-test:'stackgres-k8s/src/cluster-controller/target/surefire-reports/TEST-*.xml' \
17-
--extract distributedlogs-controller-java-test:'stackgres-k8s/src/distributedlogs-controller/target/surefire-reports/TEST-*.xml' \
1817
--extract stream-java-test:'stackgres-k8s/src/stream/target/surefire-reports/TEST-*.xml' \
1918
--extract restapi-java:'stackgres-k8s/src/restapi/target/swagger*' \
2019
parent-java \
@@ -25,7 +24,6 @@
2524
restapi-java restapi-java-test \
2625
jobs-java jobs-java-test \
2726
cluster-controller-java cluster-controller-java-test \
28-
distributedlogs-controller-java distributedlogs-controller-java-test \
2927
stream-java stream-java-test
3028
cp stackgres-k8s/ci/build/target/junit-build.hashes.xml."$(cat stackgres-k8s/ci/build/target/build_hash)" stackgres-k8s/ci/build/target/junit-build.hashes.xml
3129
retry:

.gitlab-ci/deploy.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,6 @@ deploy cluster-controller jvm image:
9191
variables:
9292
IMAGE_NAME: "stackgres/cluster-controller"
9393

94-
deploy distributedlogs-controller jvm image:
95-
extends: .deploy jvm image
96-
variables:
97-
IMAGE_NAME: "stackgres/distributedlogs-controller"
98-
9994
deploy stream jvm image:
10095
extends: .deploy jvm image
10196
variables:
@@ -132,11 +127,6 @@ deploy cluster-controller native image:
132127
variables:
133128
IMAGE_NAME: "stackgres/cluster-controller"
134129

135-
deploy distributedlogs-controller native image:
136-
extends: .deploy native image
137-
variables:
138-
IMAGE_NAME: "stackgres/distributedlogs-controller"
139-
140130
.deploy stream native image:
141131
extends: .deploy native image
142132
variables:

.gitlab-ci/image-build.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,6 @@ build cluster-controller jvm image amd64:
111111
LOCK_FILE: stackgres-cluster-controller-build-jvm-image
112112
IMAGE_MODULE_NAME: cluster-controller-jvm-image
113113

114-
build distributedlogs-controller jvm image amd64:
115-
extends: .build jvm image amd64
116-
variables:
117-
IMAGE_BASE_NAME: stackgres/distributedlogs-controller
118-
LOCK_FILE: stackgres-distributedlogs-controller-build-jvm-image
119-
IMAGE_MODULE_NAME: distributedlogs-controller-jvm-image
120-
121114
build stream jvm image amd64:
122115
extends: .build jvm image amd64
123116
variables:
@@ -153,13 +146,6 @@ build cluster-controller native image amd64:
153146
LOCK_FILE: stackgres-cluster-controller-build-native-image
154147
IMAGE_MODULE_NAME: cluster-controller-native-image
155148

156-
build distributedlogs-controller native image amd64:
157-
extends: .build native image amd64
158-
variables:
159-
IMAGE_BASE_NAME: stackgres/distributedlogs-controller
160-
LOCK_FILE: stackgres-distributedlogs-controller-build-native-image
161-
IMAGE_MODULE_NAME: distributedlogs-controller-native-image
162-
163149
.build stream native image amd64:
164150
extends: .build native image amd64
165151
variables:
@@ -236,13 +222,6 @@ build cluster-controller jvm image arm64:
236222
LOCK_FILE: stackgres-cluster-controller-build-jvm-image
237223
IMAGE_MODULE_NAME: cluster-controller-jvm-image
238224

239-
build distributedlogs-controller jvm image arm64:
240-
extends: .build jvm image arm64
241-
variables:
242-
IMAGE_BASE_NAME: stackgres/distributedlogs-controller
243-
LOCK_FILE: stackgres-distributedlogs-controller-build-jvm-image
244-
IMAGE_MODULE_NAME: distributedlogs-controller-jvm-image
245-
246225
build stream jvm image arm64:
247226
extends: .build jvm image arm64
248227
variables:
@@ -278,13 +257,6 @@ build cluster-controller native image arm64:
278257
LOCK_FILE: stackgres-cluster-controller-build-native-image
279258
IMAGE_MODULE_NAME: cluster-controller-native-image
280259

281-
build distributedlogs-controller native image arm64:
282-
extends: .build native image arm64
283-
variables:
284-
IMAGE_BASE_NAME: stackgres/distributedlogs-controller
285-
LOCK_FILE: stackgres-distributedlogs-controller-build-native-image
286-
IMAGE_MODULE_NAME: distributedlogs-controller-native-image
287-
288260
.build stream native image arm64:
289261
extends: .build native image arm64
290262
variables:
@@ -348,11 +320,6 @@ build cluster-controller jvm image multi archs:
348320
variables:
349321
IMAGE_BASE_NAME: stackgres/cluster-controller
350322

351-
build distributedlogs-controller jvm image multi archs:
352-
extends: .build jvm image multi archs
353-
variables:
354-
IMAGE_BASE_NAME: stackgres/distributedlogs-controller
355-
356323
build stream jvm image multi archs:
357324
extends: .build jvm image multi archs
358325
variables:
@@ -378,11 +345,6 @@ build cluster-controller native image multi archs:
378345
variables:
379346
IMAGE_BASE_NAME: stackgres/cluster-controller
380347

381-
build distributedlogs-controller native image multi archs:
382-
extends: .build native image multi archs
383-
variables:
384-
IMAGE_BASE_NAME: stackgres/distributedlogs-controller
385-
386348
.build stream native image multi archs:
387349
extends: .build native image multi archs
388350
variables:

.gitlab-ci/image-release.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,6 @@ release cluster-controller jvm image amd64:
118118
LOCK_FILE: stackgres-cluster-controller-release-jvm-release-image
119119
IMAGE_MODULE_NAME: cluster-controller-jvm-release-image
120120

121-
release distributedlogs-controller jvm image amd64:
122-
extends: .release jvm image amd64
123-
variables:
124-
IMAGE_BASE_NAME: stackgres/distributedlogs-controller
125-
LOCK_FILE: stackgres-distributedlogs-controller-release-jvm-release-image
126-
IMAGE_MODULE_NAME: distributedlogs-controller-jvm-release-image
127-
128121
release stream jvm image amd64:
129122
extends: .release jvm image amd64
130123
variables:
@@ -160,13 +153,6 @@ release cluster-controller native image amd64:
160153
LOCK_FILE: stackgres-cluster-controller-release-native-release-image
161154
IMAGE_MODULE_NAME: cluster-controller-native-release-image
162155

163-
release distributedlogs-controller native image amd64:
164-
extends: .release native image amd64
165-
variables:
166-
IMAGE_BASE_NAME: stackgres/distributedlogs-controller
167-
LOCK_FILE: stackgres-distributedlogs-controller-release-native-release-image
168-
IMAGE_MODULE_NAME: distributedlogs-controller-native-release-image
169-
170156
.release stream native image amd64:
171157
extends: .release native image amd64
172158
variables:
@@ -251,13 +237,6 @@ release cluster-controller jvm image arm64:
251237
LOCK_FILE: stackgres-cluster-controller-release-jvm-release-image
252238
IMAGE_MODULE_NAME: cluster-controller-jvm-release-image
253239

254-
release distributedlogs-controller jvm image arm64:
255-
extends: .release jvm image arm64
256-
variables:
257-
IMAGE_BASE_NAME: stackgres/distributedlogs-controller
258-
LOCK_FILE: stackgres-distributedlogs-controller-release-jvm-release-image
259-
IMAGE_MODULE_NAME: distributedlogs-controller-jvm-release-image
260-
261240
release stream jvm image arm64:
262241
extends: .release jvm image arm64
263242
variables:
@@ -293,13 +272,6 @@ release cluster-controller native image arm64:
293272
LOCK_FILE: stackgres-cluster-controller-release-native-release-image
294273
IMAGE_MODULE_NAME: cluster-controller-native-release-image
295274

296-
release distributedlogs-controller native image arm64:
297-
extends: .release native image arm64
298-
variables:
299-
IMAGE_BASE_NAME: stackgres/distributedlogs-controller
300-
LOCK_FILE: stackgres-distributedlogs-controller-release-native-release-image
301-
IMAGE_MODULE_NAME: distributedlogs-controller-native-release-image
302-
303275
.release stream native image arm64:
304276
extends: .release native image arm64
305277
variables:
@@ -371,11 +343,6 @@ release cluster-controller jvm image multi archs:
371343
variables:
372344
IMAGE_BASE_NAME: stackgres/cluster-controller
373345

374-
release distributedlogs-controller jvm image multi archs:
375-
extends: .release jvm image multi archs
376-
variables:
377-
IMAGE_BASE_NAME: stackgres/distributedlogs-controller
378-
379346
release stream jvm image multi archs:
380347
extends: .release jvm image multi archs
381348
variables:
@@ -401,11 +368,6 @@ release cluster-controller native image multi archs:
401368
variables:
402369
IMAGE_BASE_NAME: stackgres/cluster-controller
403370

404-
release distributedlogs-controller native image multi archs:
405-
extends: .release native image multi archs
406-
variables:
407-
IMAGE_BASE_NAME: stackgres/distributedlogs-controller
408-
409371
.release stream native image multi archs:
410372
extends: .release native image multi archs
411373
variables:

.gitlab-ci/native-build.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,6 @@ build cluster-controller native executable amd64:
7373
MAVEN_EXTRA_ARGS: "-pl .,common,operator-framework,test-util,cluster-controller"
7474
MODULE: "cluster-controller-native"
7575

76-
build distributedlogs-controller native executable amd64:
77-
extends: .build native executable amd64
78-
variables:
79-
NATIVE_IMAGE_EXTRA_PREFIX: "-distributedlogs-controller"
80-
MAVEN_EXTRA_ARGS: "-pl .,common,operator-framework,test-util,distributedlogs-controller"
81-
MODULE: "distributedlogs-controller-native"
82-
8376
.build stream native executable amd64:
8477
extends: .build native executable amd64
8578
variables:
@@ -128,13 +121,6 @@ build cluster-controller native executable arm64:
128121
MAVEN_EXTRA_ARGS: "-pl .,common,operator-framework,test-util,cluster-controller"
129122
MODULE: "cluster-controller-native"
130123

131-
build distributedlogs-controller native executable arm64:
132-
extends: .build native executable arm64
133-
variables:
134-
NATIVE_IMAGE_EXTRA_PREFIX: "-distributedlogs-controller"
135-
MAVEN_EXTRA_ARGS: "-pl .,common,operator-framework,test-util,distributedlogs-controller"
136-
MODULE: "distributedlogs-controller-native"
137-
138124
.build stream native executable arm64:
139125
extends: .build native executable arm64
140126
variables:

doc/content/en/04-administration-guide/04-configuration/02-instance-profile/_index.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ spec:
7272
dbops.set-dbops-result:
7373
cpu: "1"
7474
memory: 256Mi
75-
distributedlogs-controller:
76-
cpu: 250m
77-
memory: 512Mi
7875
envoy:
7976
cpu: "1"
8077
memory: 64Mi
@@ -137,9 +134,6 @@ spec:
137134
dbops.set-dbops-result:
138135
cpu: "1"
139136
memory: 256Mi
140-
distributedlogs-controller:
141-
cpu: 250m
142-
memory: 512Mi
143137
envoy:
144138
cpu: "1"
145139
memory: 64Mi

doc/content/en/07-developer-documentation/07-debug/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Here is a list of categories for each StackGres component:
2323
| operator | io.stackgres.operator |
2424
| restapi controller | io.stackgres.apiweb |
2525
| cluster controller | io.stackgres.cluster-controller |
26-
| distributedlogs controller | io.stackgres.distributedlogs-controller |
2726
| patroni | io.stackgres.patroni |
2827
| wal-g | io.stackgres.wal-g |
2928
| envoy | io.stackgres.envoy |

stackgres-k8s/ci/build/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This tool allows to build a hierarchy of modules, where each module depends on
1212

1313
> EXAMPLE: If I just make a change in the `operator` module (let's say rename a variable) then
1414
> `stackgres-parent`, `operator-framework`, `common`, `restapi`, `admin-ui`, `jobs`,
15-
> `cluster-controller` and `distributedlogs-controller` and all their respective dependencies
15+
> `cluster-controller` and all their respective dependencies
1616
> (the `java-image`, `native` and `native-image` module types) will not be rebuilt, only the
1717
> `operator`, `operator-java-image`, `operator-native` and `operator-native-image` modules will be
1818
> rebuilt.

0 commit comments

Comments
 (0)