refactor(charts): BREAKING CHANGE (#2836)
* Update Apps with new Common version * Patch with the secret fixes from common * fix amd
This commit is contained in:
@@ -3,7 +3,7 @@ appVersion: "2.1.9"
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: https://library-charts.truecharts.org
|
||||
version: 9.3.24
|
||||
version: 10.0.8
|
||||
- condition: mariadb.enabled
|
||||
name: mariadb
|
||||
repository: https://charts.truecharts.org/
|
||||
@@ -24,7 +24,7 @@ name: leantime
|
||||
sources:
|
||||
- https://leantime.io/
|
||||
- https://hub.docker.com/r/nicholaswilde/leantime
|
||||
version: 2.0.24
|
||||
version: 3.0.0
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- management
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/python3
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def migrate(values):
|
||||
values.update({
|
||||
**({'secretEnv': values['secret']} if values.get('secret') else {}),
|
||||
**({'secret': {}} if values.get('secret'))
|
||||
})
|
||||
return values
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) != 2:
|
||||
exit(1)
|
||||
|
||||
if os.path.exists(sys.argv[1]):
|
||||
with open(sys.argv[1], 'r') as f:
|
||||
print(json.dumps(migrate(json.loads(f.read()))))
|
||||
@@ -1,7 +1,7 @@
|
||||
{{- include "common.setup" . }}
|
||||
{{- include "tc.common.loader.init" . }}
|
||||
|
||||
{{/* Render secrets for leantime */}}
|
||||
{{- include "leantime.secrets" . }}
|
||||
|
||||
{{/* Render the templates */}}
|
||||
{{ include "common.postSetup" . }}
|
||||
{{ include "tc.common.loader.apply" . }}
|
||||
|
||||
@@ -15,15 +15,6 @@ env:
|
||||
LEAN_DB_DATABASE: "{{ .Values.mariadb.mariadbDatabase }}"
|
||||
LEAN_DB_USER: "{{ .Values.mariadb.mariadbUsername }}"
|
||||
LEAN_APP_URL: "{{ if .Values.ingress }}{{ if .Values.ingress.main.enabled }}https://{{ ( index .Values.ingress.main.hosts 0 ).host }}{{ end }}{{ end }}"
|
||||
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
main:
|
||||
port: 10117
|
||||
targetPort: 80
|
||||
|
||||
envValueFrom:
|
||||
LEAN_DB_HOST:
|
||||
secretKeyRef:
|
||||
name: mariadbcreds
|
||||
@@ -37,6 +28,14 @@ envValueFrom:
|
||||
name: leantime-secrets
|
||||
key: LEAN_SESSION_PASSWORD
|
||||
|
||||
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
main:
|
||||
port: 10117
|
||||
targetPort: 80
|
||||
|
||||
mariadb:
|
||||
enabled: true
|
||||
mariadbUsername: leantime
|
||||
|
||||
Reference in New Issue
Block a user