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: "2.5.0"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 9.3.24
version: 10.0.8
- name: "promtail"
condition: promtail.enabled
repository: https://charts.truecharts.org
@@ -23,7 +23,7 @@ name: loki
sources:
- https://github.com/grafana/loki
type: application
version: 3.0.22
version: 4.0.0
annotations:
truecharts.org/catagories: |
- logs
@@ -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
@@ -1 +1 @@
{{ include "common.all" . }}
{{ include "tc.common.loader.all" . }}
@@ -1,17 +0,0 @@
{{- if gt (len .Values.alerting_groups) 0 }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "common.names.fullname" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
data:
{{ include "common.names.fullname" . }}-alerting-rules.yaml: |-
groups:
{{- toYaml .Values.alerting_groups | nindent 6 }}
{{- end }}
-13
View File
@@ -1,13 +0,0 @@
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "common.names.fullname" . -}}-config
labels:
{{- include "common.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
data:
loki.yaml: {{ tpl (toYaml .Values.config) . | b64enc}}
+18 -1
View File
@@ -27,6 +27,23 @@ controller:
args:
- "-config.file=/etc/loki/loki.yaml"
## TODO add alertinggroups support like this
# configmap:
# alerting:
# enabled: true
# data:
# '{{ include "common.names.fullname" . }}-alerting-rules.yaml': |-
# {{- if gt (len .Values.alerting_groups) 0 }}
# groups:
# {{- toYaml .Values.alerting_groups | nindent 6 }}
# {{- end }}
secret:
config:
enabled: true
data:
loki.yaml: '{{ tpl (toYaml .Values.config) . }}'
service:
main:
ports:
@@ -130,7 +147,7 @@ persistence:
enabled: true
type: secret
# -- Specify the name of the configmap object to be mounted
objectName: '{{ include "common.names.fullname" . -}}-config'
objectName: '{{ include "tc.common.names.fullname" . -}}-config'
# -- Where to mount the volume in the main container.
mountPath: "/etc/loki"