Skip to content

Commit

Permalink
Update filesystem permissions in PostgreSQL app (#2760)
Browse files Browse the repository at this point in the history
* Update filesystem permissions in postgresql app

* Run gofmt on the file

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
pavannd1 and mergify[bot] committed Mar 18, 2024
1 parent e288993 commit 530d05b
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions pkg/app/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,17 @@ func NewPostgresDB(name string, subPath string) App {
RepoURL: helm.BitnamiRepoURL,
Chart: "postgresql",
Values: map[string]string{
"image.pullPolicy": "Always",
"auth.postgresPassword": "test@54321",
"volumePermissions.enabled": "true",
"persistence.subPath": subPath,
"primary.networkPolicy.enabled": "false",
"primary.containerSecurityContext.seccompProfile.type": "Unconfined",
"primary.containerSecurityContext.capabilities.add[0]": "CHOWN",
"primary.containerSecurityContext.capabilities.add[1]": "FOWNER",
"primary.containerSecurityContext.capabilities.add[2]": "DAC_OVERRIDE",
"image.pullPolicy": "Always",
"auth.postgresPassword": "test@54321",
"persistence.subPath": subPath,
// The following values are customized to allow snapshot/restore operations.
"volumePermissions.enabled": "true",
"primary.networkPolicy.enabled": "false",
"primary.containerSecurityContext.seccompProfile.type": "Unconfined",
"primary.containerSecurityContext.capabilities.add[0]": "CHOWN",
"primary.containerSecurityContext.capabilities.add[1]": "FOWNER",
"primary.containerSecurityContext.capabilities.add[2]": "DAC_OVERRIDE",
"primary.containerSecurityContext.readOnlyRootFilesystem": "false",
},
},
}
Expand Down

0 comments on commit 530d05b

Please sign in to comment.