Skip to content

Commit bb01e96

Browse files
committed
Add "operation.polyaxon.com/uuid" in recommended labels
1 parent 8c37856 commit bb01e96

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

cli/polyaxon/_k8s/converter/base/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def get_recommended_labels(self, version: str) -> Dict:
7878
"app.kubernetes.io/part-of": self.K8S_LABELS_PART_OF,
7979
"app.kubernetes.io/component": self.K8S_LABELS_COMPONENT,
8080
"app.kubernetes.io/managed-by": "polyaxon",
81+
"operation.polyaxon.com/uuid": self.run_uuid,
8182
}
8283

8384
@property

cli/polyaxon/_runner/agent/async_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,14 @@ async def make_and_create_run(
289289
if not resource:
290290
return
291291

292-
namepsace = None if len(run_data) < 5 else run_data[4]
292+
namespace = None if len(run_data) < 5 else run_data[4]
293293

294294
try:
295295
await self.executor.create(
296296
run_uuid=run_uuid,
297297
run_kind=run_data[1],
298298
resource=resource,
299-
namespace=namepsace,
299+
namespace=namespace,
300300
)
301301
except ApiException as e:
302302
if e.status == 409:

0 commit comments

Comments
 (0)