Skip to content

Commit

Permalink
Add custom app default information
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed Aug 8, 2024
1 parent 05fbce9 commit b9cab17
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions catalog_reader/custom_app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
APP_VERSION = 'custom'
VERSION = '1.0.0'


def get_version_details() -> dict:
"""
This is basically a stub which will be used in middleware to get version details of custom app
"""
return {
'app_metadata': {
'name': 'custom-app',
'train': 'stable',
'version': VERSION,
'app_version': APP_VERSION,
'title': 'Custom App',
'description': 'This is a custom app where user can use his/her '
'own docker compose file for deploying services',
'home': '',
'sources': [],
'maintainers': [],
'run_as_context': [],
'capabilities': [],
'host_mounts': [],
},
'version': VERSION,
'human_version': f'{VERSION}_{APP_VERSION}',
'supported': True,
'healthy': True,
'healthy_error': None,
}

0 comments on commit b9cab17

Please sign in to comment.