Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-130496 / 24.10 / Add support for deploying custom apps #45

Merged
merged 3 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion catalog_reader/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_app_version_details(
version_data['values'] = options['default_values_callable'](version_data)

app_metadata = version_data['app_metadata']
# TODO: See if this needs to change for our adaptation of ix-chart
# TODO: See if this needs to change for our adaptation of ix-app
version_data.update({
'human_version': get_human_version(app_metadata['app_version'], app_metadata['version']),
'version': app_metadata['version'],
Expand Down
35 changes: 35 additions & 0 deletions catalog_reader/custom_app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
from datetime import datetime


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,
'location': None,
'last_update': datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
}
Loading