fix(gokapi): cleanup (#3344)

* fix(gokapi): cleanup

* update UI
This commit is contained in:
Stavros Kois 2022-07-29 19:30:35 +03:00 committed by GitHub
parent 8ef157368e
commit 3e2831d7ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 112 additions and 82 deletions

View File

@ -1,10 +1,3 @@
annotations:
truecharts.org/SCALE-support: "true"
truecharts.org/catagories: |
- Cloud
- Tools-Utilities
- Network-Web
- Network-FTP
apiVersion: v2
appVersion: "latest"
dependencies:
@ -12,15 +5,13 @@ dependencies:
repository: https://library-charts.truecharts.org
version: 10.4.8
deprecated: false
description: "DESCRIPTION\r\n"
description: "Gokapi is a lightweight server to share files, which expire after a set amount of downloads or days."
home: https://github.com/truecharts/charts/tree/master/charts/incubator/gokapi
icon: https://truecharts.org/img/chart-icons/gokapi.png
keywords:
- gokapi
- Cloud
- Tools-Utilities
- Network-Web
- Network-FTP
- cloud
- utilities
kubeVersion: ">=1.16.0-0"
maintainers:
- email: info@truecharts.org
@ -31,4 +22,9 @@ sources:
- https://github.com/Forceu/gokapi
- https://hub.docker.com/r/f0rc3/gokapi
type: application
version: 0.0.14
version: 0.0.15
annotations:
truecharts.org/SCALE-support: "true"
truecharts.org/catagories: |
- cloud
- utilities

View File

@ -24,7 +24,6 @@ questions:
type: boolean
default: true
# Include{global}
- variable: controller
group: "Controller"
label: ""
@ -75,7 +74,26 @@ questions:
- value: "OnDelete"
description: "(Legacy) OnDelete: ignore .spec.template changes"
# Include{controllerExpert}
- variable: secretEnv
group: "Container Configuration"
label: "Image Secrets"
schema:
additional_attrs: true
type: dict
attrs:
- variable: GOKAPI_USERNAME
label: "GOKAPI_USERNAME"
schema:
type: string
required: true
default: ""
- variable: GOKAPI_PASSWORD
label: "GOKAPI_PASSWORD"
schema:
type: string
required: true
private: true
default: ""
- variable: env
group: "Container Configuration"
label: "Image Environment"
@ -83,30 +101,65 @@ questions:
additional_attrs: true
type: dict
attrs:
- variable: GOKAPI_USERNAME
label: 'GOKAPI_USERNAME'
schema:
type: string
default: "unraid"
- variable: GOKAPI_PASSWORD
label: 'GOKAPI_PASSWORD'
schema:
type: string
default: "unraid"
- variable: GOKAPI_LENGTH_ID
label: 'GOKAPI_LENGTH_ID'
label: "GOKAPI_LENGTH_ID"
description: "Sets the length of the download IDs."
schema:
type: string
default: "10"
type: int
default: 15
- variable: GOKAPI_MAX_FILESIZE
label: 'GOKAPI_MAX_FILESIZE'
label: "GOKAPI_MAX_FILESIZE"
description: "Sets the maximum allowed file size in MB"
schema:
type: string
default: "5"
type: int
default: 102400
- variable: GOKAPI_MAX_MEMORY_UPLOAD
label: "GOKAPI_MAX_MEMORY_UPLOAD"
description: "Sets the amount of RAM in MB that can be allocated for an upload. Any upload with a size greater than that will be written to a temporary file"
schema:
type: int
default: 20
- variable: awsconfig
label: "Configure AWS Storage"
description: "Sets the amount of RAM in MB that can be allocated for an upload. Any upload with a size greater than that will be written to a temporary file"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: GOKAPI_AWS_BUCKET
label: "GOKAPI_AWS_BUCKET"
description: "Sets the bucket name"
schema:
type: string
default: ""
- variable: GOKAPI_AWS_REGION
label: "GOKAPI_AWS_REGION"
description: "Sets the region name"
schema:
type: string
default: ""
- variable: GOKAPI_AWS_KEY
label: "GOKAPI_AWS_KEY"
description: "Sets the API key"
schema:
type: string
private: true
default: ""
- variable: GOKAPI_AWS_KEY_SECRET
label: "GOKAPI_AWS_KEY_SECRET"
description: "Sets the API key secret"
schema:
type: string
private: true
default: ""
- variable: GOKAPI_AWS_ENDPOINT
label: "GOKAPI_AWS_ENDPOINT"
description: "Sets the endpoint"
schema:
type: string
default: ""
# Include{containerConfig}
- variable: service
group: "Networking and Services"
label: "Configure Service(s)"
@ -146,7 +199,7 @@ questions:
label: "Port Type"
schema:
type: string
default: TCP
default: HTTP
enum:
- value: HTTP
description: "HTTP"
@ -169,9 +222,6 @@ questions:
schema:
type: int
default: 53842
- variable: serviceexpert
group: "Networking and Services"
label: "Show Expert Config"
@ -186,11 +236,8 @@ questions:
schema:
type: boolean
default: false
# Include{serviceExpert}
# Include{serviceList}
- variable: persistence
label: "Integrated Persistent Storage"
description: "Integrated Persistent Storage"
@ -199,7 +246,6 @@ questions:
additional_attrs: true
type: dict
attrs:
- variable: config
label: "config Storage"
schema:
@ -216,11 +262,7 @@ questions:
attrs:
# Include{persistenceBasic}
# Include{persistenceAdvanced}
# Include{persistenceList}
- variable: ingress
label: ""
group: "Ingress"
@ -235,17 +277,11 @@ questions:
type: dict
attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressExpert}
# Include{ingressList}
# Include{security}
- variable: advancedSecurity
label: "Show Advanced Security Settings"
group: "Security and Permissions"
@ -269,7 +305,7 @@ questions:
label: "ReadOnly Root Filesystem"
schema:
type: boolean
default: false
default: true
- variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation"
schema:
@ -279,9 +315,8 @@ questions:
label: "runAsNonRoot"
schema:
type: boolean
default: false
default: true
# Include{securityContextAdvanced}
- variable: podSecurityContext
group: "Security and Permissions"
label: "Pod Security Context"
@ -294,13 +329,13 @@ questions:
description: "The UserID of the user running the application"
schema:
type: int
default: 0
default: 568
- variable: runAsGroup
label: "runAsGroup"
description: The groupID this App of the user running the application"
schema:
type: int
default: 0
default: 568
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
@ -308,10 +343,6 @@ questions:
type: int
default: 568
# Include{podSecurityContextAdvanced}
# Include{resources}
# Include{advanced}
# Include{addons}

View File

@ -1,12 +1,30 @@
env:
GOKAPI_LENGTH_ID: "10"
GOKAPI_MAX_FILESIZE: "5"
GOKAPI_PASSWORD: unraid
GOKAPI_USERNAME: unraid
image:
pullPolicy: IfNotPresent
repository: tccr.io/truecharts/gokapi
tag: latest@sha256:aafdd8cc0e9ce3b45d64975be16e243de1527a1ab90e99f5b4c055ba03214996
tag: v1.5.2@sha256:6f42eaf2678c9aaccd208a8441237906911220d7ed818798523da5aec31d13df
secretEnv:
GOKAPI_PASSWORD: "changme"
GOKAPI_USERNAME: "admin"
env:
GOKAPI_LENGTH_ID: 15
GOKAPI_MAX_FILESIZE: 102400
GOKAPI_MAX_MEMORY_UPLOAD: 20
# GOKAPI_AWS_BUCKET: ""
# GOKAPI_AWS_REGION: ""
# GOKAPI_AWS_KEY: ""
# GOKAPI_AWS_KEY_SECRET: ""
# GOKAPI_AWS_ENDPOINT: ""
service:
main:
ports:
main:
port: 53842
protocol: HTTP
targetPort: 53842
persistence:
config:
enabled: true
@ -14,18 +32,3 @@ persistence:
data:
enabled: true
mountPath: /app/data
podSecurityContext:
runAsGroup: 0
runAsUser: 0
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
service:
main:
enabled: true
ports:
main:
enabled: true
port: 53842
protocol: TCP
targetPort: 53842