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
|
||||
appVersion: "1.11.0"
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
version: 6.0.35
|
||||
version: 7.0.0
|
||||
name: babybuddy
|
||||
description: Helps caregivers track sleep, feedings, diaper changes, tummy time and more to learn about and predict baby's needs without (as much) guess work.
|
||||
type: application
|
||||
@@ -18,7 +18,7 @@ sources:
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: https://library-charts.truecharts.org
|
||||
version: 9.3.24
|
||||
version: 10.0.8
|
||||
- condition: postgresql.enabled
|
||||
name: postgresql
|
||||
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" . }}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
image:
|
||||
repository: tccr.io/truecharts/babybuddy
|
||||
pullPolicy: IfNotPresent
|
||||
tag: v1.11.0@sha256:45733fc8bb55e840ca42e7648fb715931e199049c094d6fb280f1e8e0ebd0880
|
||||
tag: v1.11.0@sha256:9721f267b7534ec97c2ebf554bdda26c3c1332d21670b5757da8925c8326102d
|
||||
|
||||
env:
|
||||
DB_ENGINE: "django.db.backends.postgresql"
|
||||
DB_NAME: "{{ .Values.postgresql.postgresqlDatabase }}"
|
||||
DB_USER: "{{ .Values.postgresql.postgresqlUsername }}"
|
||||
DB_PORT: "5432"
|
||||
|
||||
envValueFrom:
|
||||
DB_PASSWORD:
|
||||
secretKeyRef:
|
||||
name: dbcreds
|
||||
|
||||
Reference in New Issue
Block a user