fix(GUI): fixup postgresql backup gui and options
Signed-off-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
This commit is contained in:
parent
726c4327b8
commit
b73ea7f18d
|
@ -17,6 +17,19 @@
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
- variable: mode
|
||||||
|
label: Mode
|
||||||
|
description: 'Cluster mode of operation. Available modes: standalone - default mode. Creates new or updates an existing CNPG cluster. recovery - Same as standalone but creates a cluster from a backup, object store or via pg_basebackup replica - Creates a replica cluster from an existing CNPG cluster. # TODO.'
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "standalone"
|
||||||
|
enum:
|
||||||
|
- value: standalone
|
||||||
|
description: standalone
|
||||||
|
- value: replica
|
||||||
|
description: replica
|
||||||
|
- value: recovery
|
||||||
|
description: recovery
|
||||||
- variable: cluster
|
- variable: cluster
|
||||||
label: "Cluster Settings"
|
label: "Cluster Settings"
|
||||||
schema:
|
schema:
|
||||||
|
@ -123,128 +136,118 @@
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
show_if: [["enabled", "=", true]]
|
||||||
default: "s3"
|
default: "s3"
|
||||||
|
enum:
|
||||||
|
- value: s3
|
||||||
|
description: S3
|
||||||
|
- value: azure
|
||||||
|
description: Azure
|
||||||
|
- value: google
|
||||||
|
description: Google
|
||||||
- variable: s3
|
- variable: s3
|
||||||
label: "s3"
|
label: "s3"
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
show_if: [["provider", "=", "s3"], ["enabled", "=", true]]
|
show_if: [["provider", "=", "s3"]]
|
||||||
attrs:
|
attrs:
|
||||||
- variable: region
|
- variable: region
|
||||||
label: "region"
|
label: "region"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: bucket
|
- variable: bucket
|
||||||
label: "bucket"
|
label: "bucket"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: path
|
- variable: path
|
||||||
label: "path"
|
label: "path"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: "/"
|
default: "/"
|
||||||
- variable: accessKey
|
- variable: accessKey
|
||||||
label: "accessKey"
|
label: "accessKey"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: secretKey
|
- variable: secretKey
|
||||||
label: "secretKey"
|
label: "secretKey"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: azure
|
- variable: azure
|
||||||
label: "azure (EXTREMELY EXPERIMENTAL)"
|
label: "azure (EXTREMELY EXPERIMENTAL)"
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
show_if: [["provider", "=", "azure"], ["enabled", "=", true]]
|
show_if: [["provider", "=", "azure"]]
|
||||||
attrs:
|
attrs:
|
||||||
- variable: path
|
- variable: path
|
||||||
label: "path"
|
label: "path"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: "/"
|
default: "/"
|
||||||
- variable: connectionString
|
- variable: connectionString
|
||||||
label: "connectionString"
|
label: "connectionString"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: storageAccount
|
- variable: storageAccount
|
||||||
label: "storageAccount"
|
label: "storageAccount"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: storageKey
|
- variable: storageKey
|
||||||
label: "storageKey"
|
label: "storageKey"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: storageSasToken
|
- variable: storageSasToken
|
||||||
label: "storageSasToken"
|
label: "storageSasToken"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: containerName
|
- variable: containerName
|
||||||
label: "containerName"
|
label: "containerName"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: serviceName
|
- variable: serviceName
|
||||||
label: "serviceName"
|
label: "serviceName"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: "blob"
|
default: "blob"
|
||||||
- variable: inheritFromAzureAD
|
- variable: inheritFromAzureAD
|
||||||
label: "inheritFromAzureAD"
|
label: "inheritFromAzureAD"
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: false
|
default: false
|
||||||
- variable: google
|
- variable: google
|
||||||
label: "google (EXTREMELY EXPERIMENTAL)"
|
label: "google (EXTREMELY EXPERIMENTAL)"
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
show_if: [["provider", "=", "google"], ["enabled", "=", true]]
|
show_if: [["provider", "=", "google"]]
|
||||||
attrs:
|
attrs:
|
||||||
- variable: path
|
- variable: path
|
||||||
label: "path"
|
label: "path"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: "/"
|
default: "/"
|
||||||
- variable: bucket
|
- variable: bucket
|
||||||
label: "bucket"
|
label: "bucket"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: gkeEnvironment
|
- variable: gkeEnvironment
|
||||||
label: "gkeEnvironment"
|
label: "gkeEnvironment"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: applicationCredentials
|
- variable: applicationCredentials
|
||||||
label: "applicationCredentials"
|
label: "applicationCredentials"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: backups
|
- variable: backups
|
||||||
label: "Backup Settings (Experimental)"
|
label: "Backup Settings (Experimental)"
|
||||||
|
@ -281,67 +284,66 @@
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
show_if: [["enabled", "=", true]]
|
||||||
default: "s3"
|
default: "s3"
|
||||||
|
enum:
|
||||||
|
- value: s3
|
||||||
|
description: S3
|
||||||
|
- value: azure
|
||||||
|
description: Azure
|
||||||
|
- value: google
|
||||||
|
description: Google
|
||||||
- variable: s3
|
- variable: s3
|
||||||
label: "s3"
|
label: "s3"
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
show_if: [["provider", "=", "s3"], ["enabled", "=", true]]
|
show_if: [["provider", "=", "s3"]]
|
||||||
attrs:
|
attrs:
|
||||||
- variable: region
|
- variable: region
|
||||||
label: "region"
|
label: "region"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: bucket
|
- variable: bucket
|
||||||
label: "bucket"
|
label: "bucket"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: path
|
- variable: path
|
||||||
label: "path"
|
label: "path"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: "/"
|
default: "/"
|
||||||
- variable: accessKey
|
- variable: accessKey
|
||||||
label: "accessKey"
|
label: "accessKey"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: secretKey
|
- variable: secretKey
|
||||||
label: "secretKey"
|
label: "secretKey"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: azure
|
- variable: azure
|
||||||
label: "azure (EXTREMELY EXPERIMENTAL)"
|
label: "azure (EXTREMELY EXPERIMENTAL)"
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
show_if: [["provider", "=", "azure"], ["enabled", "=", true]]
|
show_if: [["provider", "=", "azure"]]
|
||||||
attrs:
|
attrs:
|
||||||
- variable: path
|
- variable: path
|
||||||
label: "path"
|
label: "path"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: "/"
|
default: "/"
|
||||||
- variable: connectionString
|
- variable: connectionString
|
||||||
label: "connectionString"
|
label: "connectionString"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: storageAccount
|
- variable: storageAccount
|
||||||
label: "storageAccount"
|
label: "storageAccount"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: storageKey
|
- variable: storageKey
|
||||||
label: "storageKey"
|
label: "storageKey"
|
||||||
|
@ -353,63 +355,54 @@
|
||||||
label: "storageSasToken"
|
label: "storageSasToken"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: containerName
|
- variable: containerName
|
||||||
label: "containerName"
|
label: "containerName"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: serviceName
|
- variable: serviceName
|
||||||
label: "serviceName"
|
label: "serviceName"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: "blob"
|
default: "blob"
|
||||||
- variable: inheritFromAzureAD
|
- variable: inheritFromAzureAD
|
||||||
label: "inheritFromAzureAD"
|
label: "inheritFromAzureAD"
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: false
|
default: false
|
||||||
- variable: google
|
- variable: google
|
||||||
label: "google (EXTREMELY EXPERIMENTAL)"
|
label: "google (EXTREMELY EXPERIMENTAL)"
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
show_if: [["provider", "=", "google"], ["enabled", "=", true]]
|
show_if: [["provider", "=", "google"]]
|
||||||
attrs:
|
attrs:
|
||||||
- variable: path
|
- variable: path
|
||||||
label: "path"
|
label: "path"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: "/"
|
default: "/"
|
||||||
- variable: bucket
|
- variable: bucket
|
||||||
label: "bucket"
|
label: "bucket"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: gkeEnvironment
|
- variable: gkeEnvironment
|
||||||
label: "gkeEnvironment"
|
label: "gkeEnvironment"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: applicationCredentials
|
- variable: applicationCredentials
|
||||||
label: "applicationCredentials"
|
label: "applicationCredentials"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
default: ""
|
default: ""
|
||||||
- variable: scheduledBackups
|
- variable: scheduledBackups
|
||||||
label: ScheduledBackups
|
label: ScheduledBackups
|
||||||
schema:
|
schema:
|
||||||
type: list
|
type: list
|
||||||
default: []
|
default: []
|
||||||
show_if: [["enabled", "=", true]]
|
|
||||||
items:
|
items:
|
||||||
- variable: backupschedule
|
- variable: backupschedule
|
||||||
label: BackupSchedule
|
label: BackupSchedule
|
||||||
|
|
Loading…
Reference in New Issue