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: "1.16.8"
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/
@@ -34,7 +34,7 @@ sources:
- https://github.com/go-gitea/gitea
- https://hub.docker.com/r/gitea/gitea/
type: application
version: 6.0.29
version: 7.0.0
annotations:
truecharts.org/catagories: |
- GIT
@@ -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()))))
+4 -4
View File
@@ -11,9 +11,9 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "common.names.fullname" . }}
name: {{ include "tc.common.names.fullname" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
{{- include "tc.common.labels" . | nindent 4 }}
type: Opaque
stringData:
app.ini: |-
@@ -114,9 +114,9 @@ stringData:
apiVersion: v1
kind: Secret
metadata:
name: {{ include "common.names.fullname" . }}-init
name: {{ include "tc.common.names.fullname" . }}-init
labels:
{{- include "common.labels" . | nindent 4 }}
{{- include "tc.common.labels" . | nindent 4 }}
type: Opaque
stringData:
init_directory_structure.sh: |-
+4 -4
View File
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.setup" . }}
{{- include "tc.common.loader.init" . }}
{{/* Render secrets for gitea */}}
{{- include "gitea.secrets" . }}
@@ -15,7 +15,7 @@ readOnly: true
type: "custom"
volumeSpec:
secret:
secretName: {{ include "common.names.fullname" . }}-init
secretName: {{ include "tc.common.names.fullname" . }}-init
defaultMode: 0777
{{- end -}}
@@ -27,7 +27,7 @@ readOnly: true
type: "custom"
volumeSpec:
secret:
secretName: {{ include "common.names.fullname" . }}
secretName: {{ include "tc.common.names.fullname" . }}
{{- end -}}
{{- $_ := set .Values.persistence "init" (include "gitea.initvolume" . | fromYaml) -}}
@@ -35,4 +35,4 @@ volumeSpec:
{{/* Render the templates */}}
{{ include "common.postSetup" . }}
{{ include "tc.common.loader.apply" . }}