Skip to content

Commit

Permalink
src/scheduler: fix field name for storing k8s context name
Browse files Browse the repository at this point in the history
Correct field name for storing k8s cluster name to
`Node.data`. Set `data.job_context` field to align with
model definition.

Fixes: d916ba8 ("src/scheduler: store k8s context in the job node")
Signed-off-by: Jeny Sadadia <jeny.sadadia@collabora.com>
  • Loading branch information
Jeny Sadadia authored and JenySadadia committed Feb 9, 2024
1 parent c1f4cb0 commit 6fca51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _run_job(self, job_config, runtime, platform, input_node):

if platform.name == "kubernetes":
context = runtime.get_context()
node['data']['k8s_context'] = context
node['data']['job_context'] = context

try:
self._api.node.update(node)
Expand Down

0 comments on commit 6fca51e

Please sign in to comment.