Skip to content

Commit 3e90469

Browse files
authored
Add shared volume mounting for pruner service (#87)
* Add shared volume mounting for pruner service * Clear vulnerability alerts by upgrading to go 1.26.1
1 parent 72f6eab commit 3e90469

5 files changed

Lines changed: 23 additions & 9 deletions

File tree

.github/env/00-core.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ GO_PRIMARY_VERSION=1.24.x
2929
GO_SECONDARY_VERSION=1.24.x
3030

3131
# Govulncheck-specific Go version for vulnerability scanning
32-
GOVULNCHECK_GO_VERSION=1.26.0
32+
GOVULNCHECK_GO_VERSION=1.26.1
3333

3434
# ================================================================================================
3535
# 📦 GO MODULE CONFIGURATION

.github/env/90-project.env

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
# ================================================================================================
1818

1919
# Primary Go version (overrides 00-core.env)
20-
GO_PRIMARY_VERSION=1.25.x
20+
GO_PRIMARY_VERSION=1.26.x
2121

2222
# Secondary Go version (overrides 00-core.env)
23-
GO_SECONDARY_VERSION=1.25.x
23+
GO_SECONDARY_VERSION=1.26.x
2424

2525
# Mage-X Go versions (overrides 10-mage-x.env)
26-
MAGE_X_GO_VERSION=1.25.x
27-
MAGE_X_GO_SECONDARY_VERSION=1.25.x
26+
MAGE_X_GO_VERSION=1.26.x
27+
MAGE_X_GO_SECONDARY_VERSION=1.26.x
2828

2929
# ================================================================================================
3030
# ✨ FEATURE FLAGS (overrides 00-core.env)

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Note: Not using SHA256 digest pinning for golang base image to support multi-arch builds.
33
# SHA256 digests pin to a specific platform's image, preventing ARM64/AMD64 cross-compilation.
44
# Version pinning (1.25.2) still provides reproducibility while allowing platform flexibility.
5-
FROM golang:1.26 AS builder
5+
FROM golang:1.26.1 AS builder
66
ARG TARGETOS
77
ARG TARGETARCH
88

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/bsv-blockchain/teranode-operator
22

3-
go 1.25.2
3+
go 1.26.1
44

55
require (
66
github.com/go-logr/logr v1.4.3

internal/controller/pruner_deployment.go

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,24 @@ func defaultPrunerDeploymentSpec() *appsv1.DeploymentSpec {
154154
Protocol: corev1.ProtocolTCP,
155155
},
156156
},
157-
VolumeMounts: []corev1.VolumeMount{},
157+
VolumeMounts: []corev1.VolumeMount{
158+
{
159+
MountPath: "/data",
160+
Name: SharedPVCName,
161+
},
162+
},
163+
},
164+
},
165+
Volumes: []corev1.Volume{
166+
{
167+
Name: SharedPVCName,
168+
VolumeSource: corev1.VolumeSource{
169+
PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{
170+
ClaimName: SharedPVCName,
171+
},
172+
},
158173
},
159174
},
160-
Volumes: []corev1.Volume{},
161175
},
162176
},
163177
}

0 commit comments

Comments
 (0)