Skip to content

Commit 990121f

Browse files
authored
fix(balius,dolos): improve charts and workflows (#182)
1 parent 50e213a commit 990121f

7 files changed

Lines changed: 71 additions & 36 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: publish-balius-helm-chart
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
paths: ['charts/balius/**','.github/workflows/publish-balius-helm-chart.yml']
7+
8+
jobs:
9+
build-and-push-balius-helm-chart:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Install Helm
17+
uses: azure/setup-helm@v4
18+
- name: Package and upload chart
19+
shell: bash
20+
env:
21+
REGISTRY: "ghcr.io"
22+
REPOSITORY: "${{ github.repository }}"
23+
TOKEN: "${{ secrets.GITHUB_TOKEN }}"
24+
USER: "${{ github.repository_owner }}"
25+
run: |
26+
rm -rf dist
27+
mkdir dist
28+
helm package charts/balius/ -d dist/
29+
echo "${TOKEN}" | helm registry login "${REGISTRY}" -u "${USER}" --password-stdin
30+
for file in dist/*; do
31+
helm push "$file" "oci://${REGISTRY}/${REPOSITORY,,}/charts"
32+
done

charts/balius/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
2-
name: Balius
2+
name: balius
33
description: Balius server
4-
version: 0.0.1
4+
version: 0.0.2
55
appVersion: "0.0.1"
66

77
sources:

charts/dolos/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: dolos
33
description: Dolos server
4-
version: 0.1.2
4+
version: 0.2.0
55
appVersion: "0.25.0"
66

77
sources:

charts/dolos/templates/configmap.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ data:
1414
network_magic = 2
1515
{{- end }}
1616
17-
{{- if .Values.dolos.peerAddress }}
17+
{{- if .Values.peerAddress }}
1818
peer_address = "{{ .Values.peerAddress }}"
1919
{{- if eq .Values.network "mainnet" }}
2020
is_testnet = false
@@ -55,7 +55,7 @@ data:
5555
{{- end }}
5656
5757
[serve.grpc]
58-
listen_address = "[::]:{{ .Values.dolos.ports.grpc }}"
58+
listen_address = "[::]:{{ .Values.ports.grpc }}"
5959
permissive_cors = true
6060
6161
[serve.ouroboros]
@@ -69,7 +69,7 @@ data:
6969
{{- end }}
7070
7171
[serve.minibf]
72-
listen_address = "[::]:{{ .Values.dolos.ports.minibf }}"
72+
listen_address = "[::]:{{ .Values.ports.minibf }}"
7373
7474
[logging]
7575
max_level = "debug"

charts/dolos/templates/headless-service.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ spec:
1414
ports:
1515
- name: grpc
1616
port: {{ .Values.service.ports.grpc }}
17-
targetPort: {{ .Values.dolos.ports.grpc }}
17+
targetPort: {{ .Values.ports.grpc }}
1818
- name: ouroboros
1919
port: {{ .Values.service.ports.ouroboros }}
20-
targetPort: {{ .Values.dolos.ports.ouroboros }}
20+
targetPort: {{ .Values.ports.ouroboros }}
2121
- name: minibf
2222
port: {{ .Values.service.ports.minibf }}
23-
targetPort: {{ .Values.dolos.ports.minibf }}
23+
targetPort: {{ .Values.ports.minibf }}

charts/dolos/templates/sts.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ spec:
2020
metadata:
2121
annotations:
2222
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
23-
{{- if .Values.dolos.podAnnotations }}
24-
{{ toYaml .Values.dolos.podAnnotations | nindent 4 }}
23+
{{- if .Values.podAnnotations }}
24+
{{ toYaml .Values.podAnnotations | nindent 4 }}
2525
{{- end }}
2626
labels:
2727
app.kubernetes.io/name: {{ include "dolos.fullname" . }}
@@ -41,8 +41,8 @@ spec:
4141
name: {{ include "dolos.fullname" . }}
4242
initContainers:
4343
- name: init
44-
image: ghcr.io/txpipe/dolos:{{ .Values.dolos.version }}
45-
imagePullPolicy: IfNotPresent
44+
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
45+
imagePullPolicy: {{ .Values.image.pullPolicy }}
4646
args:
4747
- -c
4848
- /etc/config/dolos.toml
@@ -51,36 +51,36 @@ spec:
5151
- --variant
5252
- full
5353
resources:
54-
{{- toYaml .Values.dolos.resources | nindent 12 }}
54+
{{- toYaml .Values.resources | nindent 12 }}
5555
volumeMounts:
5656
- name: config
5757
mountPath: /etc/config
5858
- name: data
5959
mountPath: /var/data
6060
containers:
6161
- name: dolos
62-
image: {{ .Values.dolos.image }}:{{ .Values.dolos.version }}
63-
imagePullPolicy: IfNotPresent
62+
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
63+
imagePullPolicy: {{ .Values.image.pullPolicy }}
6464
args:
6565
- -c
6666
- /etc/config/dolos.toml
6767
- daemon
6868
resources:
69-
{{- toYaml .Values.dolos.resources | nindent 12 }}
69+
{{- toYaml .Values.resources | nindent 12 }}
7070
volumeMounts:
7171
- name: config
7272
mountPath: /etc/config
7373
- name: data
7474
mountPath: /var/data
7575
ports:
7676
- name: grpc
77-
containerPort: {{ .Values.dolos.ports.grpc }}
77+
containerPort: {{ .Values.ports.grpc }}
7878
protocol: TCP
7979
- name: ouroboros
80-
containerPort: {{ .Values.dolos.ports.ouroboros }}
80+
containerPort: {{ .Values.ports.ouroboros }}
8181
protocol: TCP
8282
- name: minibf
83-
containerPort: {{ .Values.dolos.ports.minibf }}
83+
containerPort: {{ .Values.ports.minibf }}
8484
protocol: TCP
8585
volumeClaimTemplates:
8686
- metadata:

charts/dolos/values.yaml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,25 @@ network: preview
44
# Optional custom peer address. If not set, a default public peer will be used.
55
peerAddress: ""
66

7-
dolos:
8-
image: ghcr.io/txpipe/dolos
9-
version: 0.25.0
10-
podAnnotations: {}
11-
resources:
12-
limits:
13-
cpu: "1"
14-
memory: "512Mi"
15-
requests:
16-
cpu: "500m"
17-
memory: "256Mi"
18-
ports:
19-
grpc: 50051
20-
ouroboros: 30013
21-
# Mini-Blockfrost API
22-
minibf: 3001
7+
# Dolos configuration
8+
image:
9+
repository: ghcr.io/txpipe/dolos
10+
tag: 0.25.0
11+
pullPolicy: IfNotPresent
12+
13+
podAnnotations: {}
14+
resources:
15+
limits:
16+
cpu: "1"
17+
memory: "512Mi"
18+
requests:
19+
cpu: "500m"
20+
memory: "256Mi"
21+
ports:
22+
grpc: 50051
23+
ouroboros: 30013
24+
# Mini-Blockfrost API
25+
minibf: 3001
2326

2427
service:
2528
ports:

0 commit comments

Comments
 (0)