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: "0.6"
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: https://library-charts.truecharts.org
|
||||
version: 9.3.24
|
||||
version: 10.0.8
|
||||
description: Nissan Leaf connected services to MQTT adapter
|
||||
home: https://github.com/truecharts/apps/tree/master/charts/stable/leaf2mqtt
|
||||
icon: https://truecharts.org/_static/img/appicons/leaf2mqtt.png
|
||||
@@ -22,7 +22,7 @@ name: leaf2mqtt
|
||||
sources:
|
||||
- https://github.com/mitsumaui/leaf2mqtt
|
||||
- https://github.com/k8s-at-home/container-images
|
||||
version: 3.0.20
|
||||
version: 4.0.0
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- media
|
||||
|
||||
@@ -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()))))
|
||||
@@ -52,7 +52,7 @@ questions:
|
||||
- value: "OnDelete"
|
||||
description: "(Legacy) OnDelete: ignore .spec.template changes"
|
||||
# Include{controllerExpert}
|
||||
- variable: secret
|
||||
- variable: secretEnv
|
||||
group: "Container Configuration"
|
||||
label: "Image Secrets"
|
||||
schema:
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
{{/* Render the templates */}}
|
||||
{{ include "common.all" . }}
|
||||
{{ include "tc.common.loader.all" . }}
|
||||
|
||||
@@ -29,7 +29,7 @@ probes:
|
||||
startup:
|
||||
enabled: false
|
||||
|
||||
secret:
|
||||
secretEnv:
|
||||
LEAF_USERNAME: "leafuser"
|
||||
LEAF_PASSWORD: "changeme"
|
||||
MQTT_USERNAME: "mqttuser"
|
||||
|
||||
Reference in New Issue
Block a user