fix: Refactor version endpoint json creation to guarantee variable substitution
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2023-07-19 16:46:23 +02:00
parent 36c30ca646
commit 393b1092e5
2 changed files with 6 additions and 8 deletions

View File

@ -31,13 +31,11 @@
values: | values: |
{{ {{
components['json-server'].chart_values | components['json-server'].chart_values |
combine( { combine( { 'jsonServer': { 'seedData': { 'configInline': (
'jsonServer': { components['json-server'].chart_values.jsonServer.seedData.configInline |
'seedData': { combine( { 'components': manifest_versions }, { 'appliance': { "version": appliance.version } } ) |
'configInline': (components['json-server'].chart_values.jsonServer.seedData.configInline | combine( { 'components': manifest_versions } ) | to_json) to_json
} ) } } } )
}
} )
}} }}
- name: Ensure json-server API availability - name: Ensure json-server API availability

View File

@ -192,7 +192,7 @@ components:
seedData: seedData:
configInline: | configInline: |
{ {
"appliance": { "version": "{{ appliance.version }}" }, "appliance": {},
"components": [], "components": [],
"healthz": { "status": "running" } "healthz": { "status": "running" }
} }