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:
@@ -1,7 +1,7 @@
|
||||
apiVersion: v2
|
||||
kubeVersion: ">=1.16.0-0"
|
||||
name: chevereto
|
||||
version: 1.0.15
|
||||
version: 2.0.0
|
||||
appVersion: "1.6.2"
|
||||
description: Chevereto is an image hosting software that allows you to create a beautiful and full-featured image hosting website on your own server.
|
||||
type: application
|
||||
@@ -17,7 +17,7 @@ sources:
|
||||
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/
|
||||
|
||||
@@ -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 +1 @@
|
||||
{{ include "common.all" . }}
|
||||
{{ include "tc.common.loader.all" . }}
|
||||
|
||||
@@ -18,10 +18,18 @@ env:
|
||||
CHEVERETO_DB_USER: "{{ .Values.mariadb.mariadbDatabase }}"
|
||||
CHEVERETO_DB_PORT: "3306"
|
||||
CHEVERETO_TAG: "free"
|
||||
CHEVERETO_DB_HOST:
|
||||
secretKeyRef:
|
||||
name: mariadbcreds
|
||||
key: plainporthost
|
||||
CHEVERETO_DB_PASS:
|
||||
secretKeyRef:
|
||||
name: mariadbcreds
|
||||
key: mariadb-password
|
||||
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: '{{ include "common.names.fullname" . }}-chevereto'
|
||||
name: '{{ include "tc.common.names.fullname" . }}-chevereto'
|
||||
|
||||
chevereto:
|
||||
https: false
|
||||
@@ -36,16 +44,6 @@ configmap:
|
||||
CHEVERETO_DISABLE_UPDATE_HTTP: "{{ ternary \"1\" \"0\" .Values.chevereto.disable_update_http }}"
|
||||
CHEVERETO_DISABLE_UPDATE_CLI: "{{ ternary \"1\" \"0\" .Values.chevereto.disable_update_cli }}"
|
||||
|
||||
envValueFrom:
|
||||
CHEVERETO_DB_HOST:
|
||||
secretKeyRef:
|
||||
name: mariadbcreds
|
||||
key: plainporthost
|
||||
CHEVERETO_DB_PASS:
|
||||
secretKeyRef:
|
||||
name: mariadbcreds
|
||||
key: mariadb-password
|
||||
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user