Skip to content

Commit 99df1ac

Browse files
author
Andreas Mautsch
committed
Merge branch 'refactoring'
2 parents 73dd7c8 + b1c1823 commit 99df1ac

File tree

174 files changed

+1729
-1525
lines changed

Some content is hidden

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

174 files changed

+1729
-1525
lines changed

doc/gitparser/adapter.sh

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#!/bin/bash
2+
3+
GITHUB_URL="https://github.com/goafabric"
4+
WORKDIR="/tmp/repos" # Temporary directory to clone repositories
5+
REPOLIST="$(pwd)/repos.txt" # List of repositories
6+
7+
# Ensure the working directory exists
8+
mkdir -p "$WORKDIR"
9+
cd "$WORKDIR" || exit 1
10+
11+
# Loop through each repository in repos.txt
12+
while read -r repo; do
13+
echo "Processing repository: $repo"
14+
15+
# Clone the repository (shallow clone for speed)
16+
git clone --depth 1 "$GITHUB_URL/$repo.git" "$repo" 2>/dev/null
17+
18+
# Navigate into the repository
19+
cd "$repo" || continue
20+
21+
# Ensure we are on the main branch
22+
git checkout main 2>/dev/null || git checkout master 2>/dev/null
23+
24+
# Check if application.yaml exists
25+
FILE="src/main/resources/application.yml"
26+
if [[ -f "$FILE" ]]; then
27+
echo "Found inside $repo"
28+
29+
# Extract the adapter block and process it:
30+
sed -n '/^adapter:/,/^[^ ]/p' "$FILE" | \
31+
awk '
32+
function trim(s) { sub(/^[ \t]+/, "", s); sub(/[ \t]+$/, "", s); return s }
33+
BEGIN { current_service="" }
34+
# Look for a key at 2-space indent that is “empty” (ends with a colon only)
35+
/^[ \t]{2}[a-zA-Z0-9_-]+:[ \t]*$/ {
36+
key = trim($0)
37+
sub(/:$/, "", key)
38+
# Skip common non-service keys (like "timeout")
39+
if (key != "timeout") {
40+
current_service = key
41+
} else {
42+
current_service = ""
43+
}
44+
next
45+
}
46+
# Look for a line at 4-space indent starting with "url:"
47+
/^[ \t]{4}url:[ \t]*/ {
48+
if (current_service != "") {
49+
line = trim($0)
50+
sub(/^url:[ \t]*/, "", line)
51+
print "adapter." current_service ".url=" line
52+
}
53+
}
54+
'
55+
echo "-------------------------"
56+
fi
57+
58+
# Cleanup and move back
59+
cd "$WORKDIR"
60+
rm -rf "$repo" # Remove cloned repo to save space
61+
done < "$REPOLIST"

doc/gitparser/repos.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
person-service
2+
invoice-process

doc/release-notes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# 1.3.7
2+
- upgrade Kind to Kubernetes 1.32
3+
- upgrade of Spring Applications to 3.4.3
4+
- dragonfly added as redis alternative
5+
- upgrade to istio 1.25.0
6+
7+
- argocd added for all deployments
8+
- moved specific network polices to terraform/infra/network-policies
9+
- moved specific auto-scaler policies from terraform to helm charts
10+
111
# 1.3.6
212
- upgrade to Istio 1.24.2
313
- upgrade to Kiali 2.3.0

helm/core/catalog/application/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ description: catalog-application
44

55
type: application
66

7-
version: 1.3.6
7+
version: 1.3.7
88

9-
appVersion: "3.3.3"
9+
appVersion: "3.4.3"

helm/core/catalog/application/templates/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ data:
3434
management.tracing.sampling.probability: "1.0"
3535

3636
#persistence
37-
spring.datasource.url: "jdbc:postgresql://core-postgres-postgresql-ha-pgpool:5432/core"
37+
spring.datasource.url: "jdbc:postgresql://{{ .Values.postgresql.host }}:5432/main"
3838
spring.datasource.hikari.maximum-pool-size: "10"
3939
spring.datasource.hikari.connection-timeout: "10000"
4040

helm/core/catalog/application/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ spec:
2222
spec:
2323
{{- with .Values.initContainers }}
2424
initContainers:
25-
{{- toYaml . | nindent 8 }}
26-
{{- end }}
25+
{{ tpl (toYaml .) $ | nindent 8 }}
26+
{{- end }}
2727

2828
{{ if .Values.image.pullSecrets }}
2929
imagePullSecrets:
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: autoscaling/v2
2+
kind: HorizontalPodAutoscaler
3+
metadata:
4+
name: {{ include "application.fullname" . }}
5+
namespace: {{ .Release.namespace }}
6+
spec:
7+
minReplicas: {{ .Values.replicaCount }}
8+
maxReplicas: {{ .Values.maxReplicas }}
9+
metrics:
10+
- resource:
11+
name: cpu
12+
target:
13+
averageUtilization: 50
14+
type: Utilization
15+
type: Resource
16+
scaleTargetRef:
17+
apiVersion: apps/v1
18+
kind: Deployment
19+
name: {{ include "application.fullname" . }}
20+
behavior:
21+
scaleDown:
22+
stabilizationWindowSeconds: 30
23+
selectPolicy: Max
24+
policies:
25+
- type: Percent
26+
value: 100
27+
periodSeconds: 15

helm/core/catalog/application/templates/secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ metadata:
66
{{- include "application.labels" . | nindent 4 }}
77

88
data:
9-
spring.datasource.username: Y29yZQ==
9+
spring.datasource.username: bWFpbg==
1010
spring.datasource.password: {{ .Values.database.password | b64enc }}

helm/core/catalog/application/values.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
replicaCount: 2
1+
replicaCount: 1
2+
maxReplicas: 3
23

34
ingress:
45
paths: /catalog
@@ -34,10 +35,13 @@ service:
3435
type: ClusterIP
3536
port: 8080
3637

38+
postgresql:
39+
host: postgresql.data
40+
3741
initContainers:
3842
- name: check-db-ready
39-
image: postgres:17.2
40-
command: ['sh', '-c','until pg_isready -h core-postgres-postgresql-ha-pgpool -p 5432;do echo waiting for database; sleep 1; done;']
43+
image: postgres:17.4
44+
command: ['sh', '-c','until pg_isready -h {{ .Values.postgresql.host }} -p 5432;do echo waiting for database; sleep 1; done;']
4145

4246
oidc:
4347
enabled:

helm/core/catalog/batch/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ description: catalog-batch
44

55
type: application
66

7-
version: 1.3.6
7+
version: 1.3.7
88

9-
appVersion: "3.3.3"
9+
appVersion: "3.4.3"

0 commit comments

Comments
 (0)