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
@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "1.10"
description: Teedy is an open source, lightweight document management system for individuals and businesses.
name: teedy
version: 5.0.23
version: 6.0.0
kubeVersion: ">=1.16.0-0"
keywords:
- teedy
@@ -16,7 +16,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
View File
@@ -75,7 +75,7 @@ questions:
description: "(Legacy) OnDelete: ignore .spec.template changes"
# Include{controllerExpert}
- variable: secret
- variable: secretEnv
group: "Container Configuration"
label: "Image Secrets"
schema:
+1 -1
View File
@@ -1 +1 @@
{{ include "common.all" . }}
{{ include "tc.common.loader.all" . }}
+1 -3
View File
@@ -8,7 +8,7 @@ image:
# -- environment variables. See [application docs](https://github.com/sismics/docs) for more details.
# @default -- See below
secret:
secretEnv:
# -- Defines the e-mail-address the admin user should have upon initialization
DOCS_ADMIN_EMAIL_INIT: ""
# -- Defines the password the admin user should have upon initialization. Needs to be a bcrypt hash.
@@ -28,8 +28,6 @@ env:
# -- The port of the SMTP-Server which should be used
DOCS_SMTP_PORT: 0
DATABASE_USER: "{{ .Values.postgresql.postgresqlUsername }}"
envValueFrom:
DATABASE_PASSWORD:
secretKeyRef:
name: dbcreds