Skip to content

Commit 753f51f

Browse files
committed
add default pg path for bitnami pg image
1 parent a755912 commit 753f51f

File tree

8 files changed

+13
-1
lines changed

8 files changed

+13
-1
lines changed

api/v1/app.go

+1
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ type Pg struct {
241241
StorageSize string `json:"storageSize,omitempty"`
242242
SvcName string `json:"svcName,omitempty"`
243243
StorageClass string `json:"storageClass,omitempty"`
244+
VolumePath string `json:"volumePath,omitempty"`
244245
Requests Requests `json:"requests,omitempty"`
245246
Limits Limits `json:"limits,omitempty"`
246247
MaxConnections int `json:"maxConnections,omitempty"`

api/v1/appdefaults.go

+1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ var pgDefault = Pg{
196196
StorageSize: "80Gi",
197197
SvcName: "postgres",
198198
StorageClass: "",
199+
VolumePath: "/bitnami/postgresql",
199200
Requests: Requests{
200201
Cpu: "1",
201202
Memory: "4Gi",

charts/mlops/crds/mlops.cnvrg.io_cnvrgapps.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,8 @@ spec:
585585
type: string
586586
svcName:
587587
type: string
588+
volumePath:
589+
type: string
588590
type: object
589591
prom:
590592
properties:

charts/mlops/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ dbs:
154154
storageSize: 80Gi
155155
svcName: postgres
156156
storageClass: ''
157+
volumePath: /bitnami/postgresql
157158
requests:
158159
cpu: '1'
159160
memory: 4Gi

config/crd/bases/mlops.cnvrg.io_cnvrgapps.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,8 @@ spec:
585585
type: string
586586
svcName:
587587
type: string
588+
volumePath:
589+
type: string
588590
type: object
589591
prom:
590592
properties:

pkg/app/controlplane/tmpl/crds/mlops.cnvrg.io_cnvrgapps.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,8 @@ spec:
588588
type: string
589589
svcName:
590590
type: string
591+
volumePath:
592+
type: string
591593
type: object
592594
prom:
593595
properties:

pkg/app/controlplane/tmpl/crds/mlops.cnvrg.io_cnvrgthirdparties.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ metadata:
102102
mlops.cnvrg.io/default-loader: "true"
103103
mlops.cnvrg.io/own: "false"
104104
mlops.cnvrg.io/updatable: "true"
105+
mlops.cnvrg.io/default-loader: "true"
106+
mlops.cnvrg.io/own: "false"
107+
mlops.cnvrg.io/updatable: "true"
105108
controller-gen.kubebuilder.io/version: v0.9.2
106109
creationTimestamp: null
107110
name: cnvrgthirdparties.mlops.cnvrg.io

pkg/app/dbs/tmpl/pg/dep.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ spec:
8989
privileged: false
9090
terminationMessagePath: /dev/termination-log
9191
volumeMounts:
92-
- mountPath: /var/lib/pgsql/data
92+
- mountPath: {{ .VolumePath }}
9393
name: postgres-data
9494
- mountPath: /dev/shm
9595
name: dshm

0 commit comments

Comments
 (0)