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: |
{{
components['json-server'].chart_values |
combine( {
'jsonServer': {
'seedData': {
'configInline': (components['json-server'].chart_values.jsonServer.seedData.configInline | combine( { 'components': manifest_versions } ) | to_json)
}
}
} )
combine( { 'jsonServer': { 'seedData': { 'configInline': (
components['json-server'].chart_values.jsonServer.seedData.configInline |
combine( { 'components': manifest_versions }, { 'appliance': { "version": appliance.version } } ) |
to_json
) } } } )
}}
- name: Ensure json-server API availability

View File

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