Skip to content

Commit

Permalink
Adding ability to specify persistent volume subPath (#821)
Browse files Browse the repository at this point in the history
* Adding ability to specify persistent volume subPath

* fixing test
  • Loading branch information
bathina2 authored Nov 24, 2020
1 parent ae6bd50 commit 6cd39e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pkg/app/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type PostgresDB struct {
}

// Last tested chart version "9.0.0"
func NewPostgresDB(name string) App {
func NewPostgresDB(name string, subPath string) App {
return &PostgresDB{
name: name,
chart: helm.ChartInfo{
Expand All @@ -58,6 +58,7 @@ func NewPostgresDB(name string) App {
"postgresqlExtendedConf.archiveTimeout": "60",
"postgresqlExtendedConf.walLevel": "archive",
"volumePermissions.enabled": "true",
"persistence.subPath": subPath,
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/testing/integration_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var _ = Suite(&PITRPostgreSQL{
IntegrationSuite{
name: "pitr-postgres",
namespace: "pitr-postgres-test",
app: app.NewPostgresDB("pitr-postgres"),
app: app.NewPostgresDB("pitr-postgres", ""),
bp: app.NewPITRBlueprint("pitr-postgres", ""),
profile: newSecretProfile(),
},
Expand All @@ -47,7 +47,7 @@ var _ = Suite(&PostgreSQL{
IntegrationSuite{
name: "postgres",
namespace: "postgres-test",
app: app.NewPostgresDB("postgres"),
app: app.NewPostgresDB("postgres", ""),
bp: app.NewBlueprint("postgres", ""),
profile: newSecretProfile(),
},
Expand Down

0 comments on commit 6cd39e7

Please sign in to comment.