fix(scrutiny): fix storage and envs (#1530)
This commit is contained in:
@@ -82,7 +82,29 @@ questions:
|
|||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
# Include{fixedEnv}
|
# Include{fixedEnv}
|
||||||
|
- variable: GIN_MODE
|
||||||
|
label: "GIN_MODE"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "release"
|
||||||
|
required: true
|
||||||
|
enum:
|
||||||
|
- value: "release"
|
||||||
|
description: "release"
|
||||||
|
- value: "debug"
|
||||||
|
description: "debug"
|
||||||
|
- variable: SCRUTINY_WEB
|
||||||
|
label: "SCRUTINY_WEB"
|
||||||
|
description: "SCRUTINY_WEB"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
- variable: SCRUTINY_COLLECTOR
|
||||||
|
label: "SCRUTINY_COLLECTOR"
|
||||||
|
description: "SCRUTINY_COLLECTOR"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
# Include{containerConfig}
|
# Include{containerConfig}
|
||||||
|
|
||||||
- variable: service
|
- variable: service
|
||||||
@@ -232,6 +254,62 @@ questions:
|
|||||||
- value: "Memory"
|
- value: "Memory"
|
||||||
description: "Memory"
|
description: "Memory"
|
||||||
# Include{persistenceAdvanced}
|
# Include{persistenceAdvanced}
|
||||||
|
- variable: data
|
||||||
|
label: "App data Storage"
|
||||||
|
description: "Stores the Application data."
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: enabled
|
||||||
|
label: "Enable the storage"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
hidden: true
|
||||||
|
- variable: type
|
||||||
|
label: "Type of Storage"
|
||||||
|
description: "Sets the persistence type, Anything other than PVC could break rollback!"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "simplePVC"
|
||||||
|
enum:
|
||||||
|
- value: "simplePVC"
|
||||||
|
description: "PVC (simple)"
|
||||||
|
- value: "simpleHP"
|
||||||
|
description: "HostPath (simple)"
|
||||||
|
- value: "emptyDir"
|
||||||
|
description: "emptyDir"
|
||||||
|
- value: "pvc"
|
||||||
|
description: "pvc"
|
||||||
|
- value: "hostPath"
|
||||||
|
description: "hostPath"
|
||||||
|
# Include{persistenceBasic}
|
||||||
|
- variable: hostPath
|
||||||
|
label: "hostPath"
|
||||||
|
description: "Path inside the container the storage is mounted"
|
||||||
|
schema:
|
||||||
|
show_if: [["type", "=", "hostPath"]]
|
||||||
|
type: hostpath
|
||||||
|
- variable: mountPath
|
||||||
|
label: "mountPath"
|
||||||
|
description: "Path inside the container the storage is mounted"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "/config"
|
||||||
|
hidden: true
|
||||||
|
valid_chars: '^\/([a-zA-Z0-9._-]+(\s?[a-zA-Z0-9._-]+|\/?))+$'
|
||||||
|
- variable: medium
|
||||||
|
label: "EmptyDir Medium"
|
||||||
|
schema:
|
||||||
|
show_if: [["type", "=", "emptyDir"]]
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
enum:
|
||||||
|
- value: ""
|
||||||
|
description: "Default"
|
||||||
|
- value: "Memory"
|
||||||
|
description: "Memory"
|
||||||
|
# Include{persistenceAdvanced}
|
||||||
|
|
||||||
# Include{persistenceList}
|
# Include{persistenceList}
|
||||||
|
|
||||||
@@ -278,7 +356,7 @@ questions:
|
|||||||
label: "ReadOnly Root Filesystem"
|
label: "ReadOnly Root Filesystem"
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: false
|
||||||
- variable: allowPrivilegeEscalation
|
- variable: allowPrivilegeEscalation
|
||||||
label: "Allow Privilege Escalation"
|
label: "Allow Privilege Escalation"
|
||||||
schema:
|
schema:
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ securityContext:
|
|||||||
runAsNonRoot: false
|
runAsNonRoot: false
|
||||||
privileged: true
|
privileged: true
|
||||||
allowPrivilegeEscalation: true
|
allowPrivilegeEscalation: true
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
@@ -14,6 +15,9 @@ podSecurityContext:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
PUID: 568
|
PUID: 568
|
||||||
|
SCRUTINY_WEB: true
|
||||||
|
SCRUTINY_COLLECTOR: true
|
||||||
|
SCRUTINY_API_ENDPOINT: "http://localhost:8080"
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
@@ -28,6 +32,9 @@ persistence:
|
|||||||
config:
|
config:
|
||||||
enabled: true
|
enabled: true
|
||||||
mountPath: "/scrutiny/config"
|
mountPath: "/scrutiny/config"
|
||||||
|
data:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/config"
|
||||||
udev:
|
udev:
|
||||||
type: hostPath
|
type: hostPath
|
||||||
hostPath: /run/udev
|
hostPath: /run/udev
|
||||||
|
|||||||
Reference in New Issue
Block a user