fix(snipe-it): fix permissions and add more storage questions (#2269)

* fix(snipe-it): remove persistence

* session off

* test

* add persistence

* re-add storage
This commit is contained in:
Stavros Kois 2022-03-24 20:30:25 +02:00 committed by GitHub
parent f681955d08
commit 600200cdac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 98 additions and 7 deletions

View File

@ -29,7 +29,7 @@ name: snipe-it
sources:
- https://snipeitapp.com/
- https://hub.docker.com/r/linuxserver/
version: 2.0.1
version: 2.0.2
annotations:
truecharts.org/catagories: |
- management

View File

@ -676,6 +676,49 @@ questions:
additional_attrs: true
type: dict
attrs:
- variable: data
label: "App Data Storage"
description: "Stores the Application Data."
schema:
additional_attrs: true
type: dict
attrs:
- 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: medium
label: "EmptyDir Medium"
schema:
show_if: [["type", "=", "emptyDir"]]
type: string
default: ""
enum:
- value: ""
description: "Default"
- value: "Memory"
description: "Memory"
# Include{persistenceAdvanced}
- variable: logs
label: "App Logs Storage"
description: "Stores the Application Logs."
@ -718,6 +761,49 @@ questions:
description: "Default"
- value: "Memory"
description: "Memory"
# Include{persistenceAdvanced}
- variable: backups
label: "App Backups Storage"
description: "Stores the Application Backups."
schema:
additional_attrs: true
type: dict
attrs:
- 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: medium
label: "EmptyDir Medium"
schema:
show_if: [["type", "=", "emptyDir"]]
type: string
default: ""
enum:
- value: ""
description: "Default"
- value: "Memory"
description: "Memory"
# Include{persistenceAdvanced}
# Include{persistenceList}
@ -800,13 +886,13 @@ questions:
description: The groupID this App of the user running the application"
schema:
type: int
default: 0
default: 1000
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
type: int
default: 568
default: 50
# Include{podSecurityContextAdvanced}
# Include{resources}

View File

@ -9,7 +9,7 @@ securityContext:
podSecurityContext:
runAsUser: 0
runAsGroup: 50
runAsGroup: 1000
fsGroup: 50
env:
@ -19,16 +19,15 @@ env:
DB_DATABASE: "{{ .Values.mariadb.mariadbDatabase }}"
DB_PORT: "3306"
REDIS_PORT: "6379"
SESSION_DRIVER: "redis"
APP_TIMEZONE: "{{ .Values.TZ }}"
FILESYSTEM_DISK: "local"
# User Defined
APP_DEBUG: true
APP_LOG_LEVEL: "debug"
APP_URL: "http://localhost:80"
APP_LOCALE: "en"
MAX_RESULTS: 500
IMAGE_LIB: "gd"
# APP_DEBUG: true
# APP_LOG_LEVEL: "debug"
# Session
SESSION_LIFETIME: 30
EXPIRE_ON_CLOSE: false
@ -73,6 +72,12 @@ persistence:
logs:
enabled: true
mountPath: "/var/www/html/storage/logs"
data:
enabled: true
mountPath: "/var/lib/snipeit/data"
backups:
enabled: true
mountPath: "/var/lib/snipeit/dumps"
mariadb:
enabled: true