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:
Kjeld Schouten-Lebbing
2022-06-07 19:41:19 +02:00
committed by GitHub
parent e4911cf0b1
commit 5529c2a3af
1546 changed files with 10467 additions and 3650 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ appVersion: "3.3.3"
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/
@@ -23,7 +23,7 @@ name: xbackbone
sources:
- https://github.com/SergiX44/XBackBone
- https://hub.docker.com/r/pe46dro/xbackbone-docker
version: 1.0.23
version: 2.0.0
annotations:
truecharts.org/catagories: |
- files
@@ -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" . }}
+8 -10
View File
@@ -17,7 +17,14 @@ env:
DB_TYPE: mysql
MYSQL_DATABASE: xbackbone
MYSQL_USER: xbackbone
MYSQL_HOST:
secretKeyRef:
name: mariadbcreds
key: plainhost
MYSQL_PASSWORD:
secretKeyRef:
name: mariadbcreds
key: mariadb-password
# -- Configures service settings for the chart.
# @default -- See values.yaml
@@ -35,15 +42,6 @@ persistence:
enabled: true
mountPath: "/app/config"
envValueFrom:
MYSQL_HOST:
secretKeyRef:
name: mariadbcreds
key: plainhost
MYSQL_PASSWORD:
secretKeyRef:
name: mariadbcreds
key: mariadb-password
mariadb:
enabled: true