Skip to content

Commit 032bf03

Browse files
committed
fix(RHOAIENG-20531): propagate annotations to ray pods
Signed-off-by: Pat O'Connor <[email protected]>
1 parent c311665 commit 032bf03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/codeflare_sdk/ray/cluster/build_ray_cluster.py

+2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def build_ray_cluster(cluster: "codeflare_sdk.ray.cluster.Cluster"):
140140
"resources": head_resources,
141141
},
142142
"template": {
143+
"metadata": V1ObjectMeta(cluster.config.annotations),
143144
"spec": get_pod_spec(
144145
cluster,
145146
[get_head_container_spec(cluster)],
@@ -159,6 +160,7 @@ def build_ray_cluster(cluster: "codeflare_sdk.ray.cluster.Cluster"):
159160
"resources": worker_resources,
160161
},
161162
"template": V1PodTemplateSpec(
163+
metadata=V1ObjectMeta(cluster.config.annotations),
162164
spec=get_pod_spec(
163165
cluster,
164166
[get_worker_container_spec(cluster)],

0 commit comments

Comments
 (0)