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:
@@ -3,7 +3,7 @@ appVersion: "4.10.1"
|
||||
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 @@ sources:
|
||||
- https://hub.docker.com/r/bitnami/matomo
|
||||
- https://github.com/bitnami/bitnami-docker-matomo
|
||||
- https://github.com/matomo-org/matomo
|
||||
version: 1.0.67
|
||||
version: 2.0.0
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- productivity
|
||||
|
||||
@@ -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,6 +1,6 @@
|
||||
image:
|
||||
repository: tccr.io/truecharts/matomo
|
||||
tag: v4.10.1@sha256:c7ebe37ff70c02e2679f8d60fd34a383678f8dfe457325bba3946c508eb0318d
|
||||
tag: v4.10.1@sha256:1ac42cd2b07045464c80ad4213aa4bf81ece1097009c35697a77d9d19348964c
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
securityContext:
|
||||
@@ -51,6 +51,14 @@ env:
|
||||
# PHP_MAX_INPUT_VARS:
|
||||
# PHP_POST_MAX_SIZE:
|
||||
# PHP_UPLOAD_MAX_FILESIZE:
|
||||
MATOMO_DATABASE_HOST:
|
||||
secretKeyRef:
|
||||
name: mariadbcreds
|
||||
key: plainhost
|
||||
MATOMO_DATABASE_PASSWORD:
|
||||
secretKeyRef:
|
||||
name: mariadbcreds
|
||||
key: mariadb-password
|
||||
|
||||
probes:
|
||||
liveness:
|
||||
@@ -81,16 +89,6 @@ persistence:
|
||||
enabled: true
|
||||
mountPath: "/bitnami/matomo"
|
||||
|
||||
envValueFrom:
|
||||
MATOMO_DATABASE_HOST:
|
||||
secretKeyRef:
|
||||
name: mariadbcreds
|
||||
key: plainhost
|
||||
MATOMO_DATABASE_PASSWORD:
|
||||
secretKeyRef:
|
||||
name: mariadbcreds
|
||||
key: mariadb-password
|
||||
|
||||
mariadb:
|
||||
enabled: true
|
||||
mariadbUsername: matomo
|
||||
|
||||
Reference in New Issue
Block a user