Skip to content

Commit

Permalink
fix: updates default service urls in api calls (#262)
Browse files Browse the repository at this point in the history
Fixes the issue where the .apps.rapyuta.io routes were used as default in some API calls that started failing after migrating to AKS. This PR fixes the issue by updating the default routes.
  • Loading branch information
pallabpain authored Jan 31, 2024
1 parent c635914 commit 4ee6f43
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion riocli/apply/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _list_networks(self):
def _list_disks(self):
config = Configuration()
catalog_host = config.data.get(
'catalog_host', 'https://gacatalog.apps.rapyuta.io')
'catalog_host', 'https://gacatalog.apps.okd4v2.prod.rapyuta.io')
url = '{}/disk'.format(catalog_host)
headers = config.get_auth_header()
response = RestClient(url).method(
Expand Down
2 changes: 1 addition & 1 deletion riocli/deployment/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ def stream_deployment_logs(deployment_id, component_id, exec_id, pod_name=None):


def get_log_stream_url(config, deployment_id, component_id, exec_id, pod_name=None, tail=50000):
catalog_host = config.data.get('catalog_host', 'https://gacatalog.apps.rapyuta.io')
catalog_host = config.data.get('catalog_host', 'https://gacatalog.apps.okd4v2.prod.rapyuta.io')
return _LOG_URL_FORMAT.format(catalog_host, tail, deployment_id, component_id, exec_id, pod_name)
2 changes: 1 addition & 1 deletion riocli/disk/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _api_call(
) -> typing.Any:
config = Configuration()
catalog_host = config.data.get(
'catalog_host', 'https://gacatalog.apps.rapyuta.io')
'catalog_host', 'https://gacatalog.apps.okd4v2.prod.rapyuta.io')

url = '{}/disk'.format(catalog_host)
if guid:
Expand Down
2 changes: 1 addition & 1 deletion riocli/organization/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _api_call(
config = Configuration()
coreapi_host = config.data.get(
'core_api_host',
'https://gaapiserver.apps.rapyuta.io'
'https://gaapiserver.apps.okd4v2.prod.rapyuta.io'
)

url = '{}/api/organization'.format(coreapi_host)
Expand Down
2 changes: 1 addition & 1 deletion riocli/parameter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _api_call(
) -> typing.Any:
config = Configuration()
catalog_host = config.data.get(
'core_api_host', 'https://gaapiserver.apps.rapyuta.io')
'core_api_host', 'https://gaapiserver.apps.okd4v2.prod.rapyuta.io')
url = '{}/api/paramserver/tree'.format(catalog_host)
if name:
url = '{}/{}'.format(url, name)
Expand Down
2 changes: 1 addition & 1 deletion riocli/utils/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _run_cloud_data(comp_id: str, exec_id: str, pod_name: str, command: typing.L


def _run_cloud_url(config: Configuration, deployment_guid: str) -> str:
host = config.data.get('catalog_host', 'https://gacatalog.apps.rapyuta.io')
host = config.data.get('catalog_host', 'https://gacatalog.apps.okd4v2.prod.rapyuta.io')
return _CLOUD_RUN_REMOTE_COMMAND.format(host, deployment_guid)


Expand Down

0 comments on commit 4ee6f43

Please sign in to comment.