feat(leantime): use official image (#1562)
* feat(leantime): use official image * test perms * needs full access * update image
This commit is contained in:
@@ -24,7 +24,7 @@ name: leantime
|
|||||||
sources:
|
sources:
|
||||||
- https://leantime.io/
|
- https://leantime.io/
|
||||||
- https://hub.docker.com/r/nicholaswilde/leantime
|
- https://hub.docker.com/r/nicholaswilde/leantime
|
||||||
version: 0.0.12
|
version: 1.0.0
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- management
|
- management
|
||||||
|
|||||||
@@ -149,64 +149,6 @@ questions:
|
|||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 80
|
default: 80
|
||||||
- variable: extra
|
|
||||||
label: "extra Service"
|
|
||||||
description: "The extra service "
|
|
||||||
schema:
|
|
||||||
type: dict
|
|
||||||
attrs:
|
|
||||||
# Include{serviceSelector}
|
|
||||||
- variable: extra
|
|
||||||
label: "extra Service Port Configuration"
|
|
||||||
schema:
|
|
||||||
type: dict
|
|
||||||
attrs:
|
|
||||||
- variable: port
|
|
||||||
label: "Port"
|
|
||||||
description: "This port exposes the container port on the service"
|
|
||||||
schema:
|
|
||||||
type: int
|
|
||||||
default: 10118
|
|
||||||
required: true
|
|
||||||
- variable: advanced
|
|
||||||
label: "Show Advanced settings"
|
|
||||||
schema:
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
show_subquestions_if: true
|
|
||||||
subquestions:
|
|
||||||
- variable: enabled
|
|
||||||
label: "Enable the port"
|
|
||||||
schema:
|
|
||||||
type: boolean
|
|
||||||
default: true
|
|
||||||
- variable: protocol
|
|
||||||
label: "Port Type"
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: "HTTP"
|
|
||||||
enum:
|
|
||||||
- value: HTTP
|
|
||||||
description: "HTTP"
|
|
||||||
- value: "HTTPS"
|
|
||||||
description: "HTTPS"
|
|
||||||
- value: TCP
|
|
||||||
description: "TCP"
|
|
||||||
- value: "UDP"
|
|
||||||
description: "UDP"
|
|
||||||
- variable: nodePort
|
|
||||||
label: "Node Port (Optional)"
|
|
||||||
description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer"
|
|
||||||
schema:
|
|
||||||
type: int
|
|
||||||
min: 9000
|
|
||||||
max: 65535
|
|
||||||
- variable: targetPort
|
|
||||||
label: "Target Port"
|
|
||||||
description: "The internal(!) port on the container the Application runs on"
|
|
||||||
schema:
|
|
||||||
type: int
|
|
||||||
default: 9000
|
|
||||||
|
|
||||||
- variable: serviceexpert
|
- variable: serviceexpert
|
||||||
group: "Networking and Services"
|
group: "Networking and Services"
|
||||||
@@ -227,63 +169,6 @@ questions:
|
|||||||
|
|
||||||
# Include{serviceList}
|
# Include{serviceList}
|
||||||
|
|
||||||
- variable: persistence
|
|
||||||
label: "Integrated Persistent Storage"
|
|
||||||
description: "Integrated Persistent Storage"
|
|
||||||
group: "Storage and Persistence"
|
|
||||||
schema:
|
|
||||||
type: dict
|
|
||||||
attrs:
|
|
||||||
- variable: sessions
|
|
||||||
label: "App sessions Storage"
|
|
||||||
description: "Stores the Application sessions."
|
|
||||||
schema:
|
|
||||||
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: mountPath
|
|
||||||
label: "mountPath (Non-editable"
|
|
||||||
description: "Path inside the container the storage is mounted"
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: "/sessions"
|
|
||||||
editable: false
|
|
||||||
valid_chars: '^\/([a-zA-Z0-9._-]+(\s?[a-zA-Z0-9._-]+|\/?))+$'
|
|
||||||
# Include{persistenceList}
|
# Include{persistenceList}
|
||||||
|
|
||||||
- variable: ingress
|
- variable: ingress
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{{/* Define the secrets */}}
|
||||||
|
{{- define "leantime.secrets" -}}
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
type: Opaque
|
||||||
|
metadata:
|
||||||
|
name: leantime-secrets
|
||||||
|
{{- $leantimeprevious := lookup "v1" "Secret" .Release.Namespace "leantime-secrets" }}
|
||||||
|
{{- $session_password := "" }}
|
||||||
|
data:
|
||||||
|
{{- if $leantimeprevious}}
|
||||||
|
LEAN_SESSION_PASSWORD: {{ index $leantimeprevious.data "LEAN_SESSION_PASSWORD" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $session_password := randAlphaNum 32 }}
|
||||||
|
LEAN_SESSION_PASSWORD: {{ $session_password | b64enc | quote }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- end -}}
|
||||||
@@ -1,2 +1,7 @@
|
|||||||
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
{{ include "common.all" . }}
|
{{/* Render secrets for leantime */}}
|
||||||
|
{{- include "leantime.secrets" . }}
|
||||||
|
|
||||||
|
{{/* Render the templates */}}
|
||||||
|
{{ include "common.postSetup" . }}
|
||||||
|
|||||||
@@ -1,20 +1,19 @@
|
|||||||
image:
|
image:
|
||||||
repository: tccr.io/truecharts/leantime
|
repository: tccr.io/truecharts/leantime
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: v2.1.7-ls6@sha256:09f51955b47e8bf7cf8c95b7fa4e023ce2fae4aa15ef42db1568b4c23830b5a6
|
tag: v2.1.8@sha256:c2a5025fb6019f0fea9d3d8fb37a52f6a91a7d72117a081b759a1d0762dea513
|
||||||
|
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: false
|
runAsNonRoot: false
|
||||||
readOnlyRootFilesystem: false
|
readOnlyRootFilesystem: false
|
||||||
|
|
||||||
|
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
runAsGroup: 0
|
runAsGroup: 0
|
||||||
|
|
||||||
env:
|
env:
|
||||||
LEAN_DB_DATABASE: "leantime"
|
LEAN_DB_DATABASE: "{{ .Values.mariadb.mariadbDatabase }}"
|
||||||
LEAN_DB_USER: leantime
|
LEAN_DB_USER: "{{ .Values.mariadb.mariadbUsername }}"
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
@@ -22,19 +21,6 @@ service:
|
|||||||
main:
|
main:
|
||||||
port: 10117
|
port: 10117
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
extra:
|
|
||||||
enabled: true
|
|
||||||
ports:
|
|
||||||
extra:
|
|
||||||
enabled: true
|
|
||||||
port: 10118
|
|
||||||
targetPort: 9000
|
|
||||||
protocol: UDP
|
|
||||||
|
|
||||||
persistence:
|
|
||||||
sessions:
|
|
||||||
enabled: true
|
|
||||||
mountPath: "/sessions"
|
|
||||||
|
|
||||||
envValueFrom:
|
envValueFrom:
|
||||||
LEAN_DB_HOST:
|
LEAN_DB_HOST:
|
||||||
@@ -45,6 +31,10 @@ envValueFrom:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: mariadbcreds
|
name: mariadbcreds
|
||||||
key: mariadb-password
|
key: mariadb-password
|
||||||
|
LEAN_SESSION_PASSWORD:
|
||||||
|
secretKeyRef:
|
||||||
|
name: leantime-secrets
|
||||||
|
key: LEAN_SESSION_PASSWORD
|
||||||
|
|
||||||
mariadb:
|
mariadb:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user