Skip to content
Snippets Groups Projects
Commit 3b64aed6 authored by Björn Vonheiden's avatar Björn Vonheiden
Browse files

Enhance readability using correct types in run uc

parent 8ea1c2aa
No related branches found
No related tags found
2 merge requests!42Integerate theodolite and run uc python scripts,!24run UC as python implementation
...@@ -180,8 +180,8 @@ def start_application(): ...@@ -180,8 +180,8 @@ def start_application():
app_container['image'] = 'soerenhenning/uc' + args.uc_id + '-app:latest' app_container['image'] = 'soerenhenning/uc' + args.uc_id + '-app:latest'
# TODO: acces over name of attribute # TODO: acces over name of attribute
app_container['env'][1]['value'] = str(args.commit_interval_ms) app_container['env'][1]['value'] = str(args.commit_interval_ms)
app_container['resources']['limits']['memory'] = str(args.memory_limit) app_container['resources']['limits']['memory'] = args.memory_limit
app_container['resources']['limits']['cpu'] = str(args.cpu_limit) # cpu limit is already str app_container['resources']['limits']['cpu'] = args.cpu_limit
try: try:
resp = appsApi.create_namespaced_deployment( resp = appsApi.create_namespaced_deployment(
namespace="default", namespace="default",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment