Merge pull request #479 from truenas/NAS-116291

NAS-116291 / 22.12 / Allow adding custom host path for postgres for nextcloud
This commit is contained in:
M. Rehan
2022-07-02 21:54:32 +05:00
committed by GitHub
56 changed files with 68 additions and 6 deletions

View File

@@ -19,4 +19,4 @@ sources:
- https://github.com/nextcloud/docker
- https://github.com/nextcloud/helm
upstream_version: 2.3.2
version: 1.6.4
version: 1.6.5

View File

@@ -229,7 +229,6 @@ questions:
group: "Storage"
schema:
type: dict
hidden: true
attrs:
- variable: postgres-data
label: "Postgres Data Volume"
@@ -240,17 +239,34 @@ questions:
label: "Postgres Data Volume Name"
schema:
type: string
hidden: true
$ref:
- "normalize/ixVolume"
default: "ix-postgres_data"
show_if: [["hostPathEnabled", "=", false]]
editable: false
- variable: mountPath
label: "Postgresql Data Mount Path"
description: "Path where the volume will be mounted inside the pod"
schema:
type: path
hidden: true
editable: false
default: "/var/lib/postgresql/data"
- variable: hostPathEnabled
label: "Enable Host Path for Postgres Data Volume"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: hostPath
label: "Host Path for Postgres Data Volume"
schema:
type: hostpath
required: true
- variable: postgres-backup
label: "Postgres Backup Volume"
schema:
@@ -260,17 +276,32 @@ questions:
label: "Postgres Backup Volume Name"
schema:
type: string
hidden: true
$ref:
- "normalize/ixVolume"
default: "ix-postgres_backups"
show_if: [["hostPathEnabled", "=", false]]
editable: false
- variable: mountPath
label: "Postgresql Backup Mount Path"
description: "Path where the volume will be mounted inside the pod"
schema:
type: path
hidden: true
editable: false
default: "/postgres_backups"
- variable: hostPathEnabled
label: "Enable Host Path for Postgres Backup Volume"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: hostPath
label: "Host Path for Postgres Backup Volume"
schema:
type: hostpath
required: true
- variable: enableResourceLimits
label: "Enable Pod resource limits"
@@ -295,4 +326,4 @@ questions:
type: string
show_if: [["enableResourceLimits", "=", true]]
valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
default: "8Gi"
default: "8Gi"

View File

@@ -19,4 +19,4 @@ sources:
- https://github.com/nextcloud/docker
- https://github.com/nextcloud/helm
upstream_version: 2.3.2
version: 1.6.4
version: 1.6.5

View File

@@ -229,7 +229,6 @@ questions:
group: "Storage"
schema:
type: dict
hidden: true
attrs:
- variable: postgres-data
label: "Postgres Data Volume"
@@ -240,17 +239,34 @@ questions:
label: "Postgres Data Volume Name"
schema:
type: string
hidden: true
$ref:
- "normalize/ixVolume"
default: "ix-postgres_data"
show_if: [["hostPathEnabled", "=", false]]
editable: false
- variable: mountPath
label: "Postgresql Data Mount Path"
description: "Path where the volume will be mounted inside the pod"
schema:
type: path
hidden: true
editable: false
default: "/var/lib/postgresql/data"
- variable: hostPathEnabled
label: "Enable Host Path for Postgres Data Volume"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: hostPath
label: "Host Path for Postgres Data Volume"
schema:
type: hostpath
required: true
- variable: postgres-backup
label: "Postgres Backup Volume"
schema:
@@ -260,17 +276,32 @@ questions:
label: "Postgres Backup Volume Name"
schema:
type: string
hidden: true
$ref:
- "normalize/ixVolume"
default: "ix-postgres_backups"
show_if: [["hostPathEnabled", "=", false]]
editable: false
- variable: mountPath
label: "Postgresql Backup Mount Path"
description: "Path where the volume will be mounted inside the pod"
schema:
type: path
hidden: true
editable: false
default: "/postgres_backups"
- variable: hostPathEnabled
label: "Enable Host Path for Postgres Backup Volume"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: hostPath
label: "Host Path for Postgres Backup Volume"
schema:
type: hostpath
required: true
- variable: enableResourceLimits
label: "Enable Pod resource limits"
@@ -295,4 +326,4 @@ questions:
type: string
show_if: [["enableResourceLimits", "=", true]]
valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
default: "8Gi"
default: "8Gi"