Skip to content

Commit

Permalink
feat: Blueprint custom badger path (#35)
Browse files Browse the repository at this point in the history
Upgrading `pkg/repositories` so that Blueprint can take a custom
`badger.path` and use a PVC in Kubernetes.
  • Loading branch information
jgkawell authored Aug 9, 2024
1 parent 26fdb7e commit de44fd9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pipelines/secrets
node_1
node_2
node_3
tmp

.DS_Store

Expand Down
3 changes: 3 additions & 0 deletions services/core/blueprint/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ service:
network:
port: 2221

badger:
path: tmp/

raft:
node-id: node_1
address: localhost
Expand Down
4 changes: 3 additions & 1 deletion services/core/blueprint/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ go 1.21.3

// replace github.com/steady-bytes/draft/pkg/chassis => ../../../pkg/chassis

// replace github.com/steady-bytes/draft/pkg/repositories => ../../../pkg/repositories

require (
connectrpc.com/connect v1.16.2
github.com/dgraph-io/badger/v2 v2.2007.4
Expand All @@ -14,7 +16,7 @@ require (
github.com/steady-bytes/draft/api v0.3.1
github.com/steady-bytes/draft/pkg/chassis v0.3.0
github.com/steady-bytes/draft/pkg/loggers v0.2.0
github.com/steady-bytes/draft/pkg/repositories v0.0.2
github.com/steady-bytes/draft/pkg/repositories v0.0.3
google.golang.org/protobuf v1.34.2
)

Expand Down
4 changes: 2 additions & 2 deletions services/core/blueprint/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ github.com/steady-bytes/draft/pkg/chassis v0.3.0 h1:9uk+RRuSec2Sl7wy5ZSNv3IcqRqb
github.com/steady-bytes/draft/pkg/chassis v0.3.0/go.mod h1:5TQfgltb/008bcuLe6vAQva0Kzrq1zEDCFoCfQjzzLo=
github.com/steady-bytes/draft/pkg/loggers v0.2.0 h1:d1a3l6HMfa8g9+o+roeT5BoA7aeDBIh6UMLeOddsNsk=
github.com/steady-bytes/draft/pkg/loggers v0.2.0/go.mod h1:nXeOQ6lXhsVWHzRqVcJz0JIeSW75ORVN+0izJwwnH+Y=
github.com/steady-bytes/draft/pkg/repositories v0.0.2 h1:vtcJowGB0VxYDd/1Zs5zYPIPTqvoh0C53kibnOtrZuM=
github.com/steady-bytes/draft/pkg/repositories v0.0.2/go.mod h1:JQ4wYAwaJQKDwKaG+9bdSIIzOuroIqNzVsIx9JX99H4=
github.com/steady-bytes/draft/pkg/repositories v0.0.3 h1:6MyBkga27olqM42HriZZJgbyvrwSwyZDHtrkdSKMNPA=
github.com/steady-bytes/draft/pkg/repositories v0.0.3/go.mod h1:JQ4wYAwaJQKDwKaG+9bdSIIzOuroIqNzVsIx9JX99H4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
Expand Down

0 comments on commit de44fd9

Please sign in to comment.