File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
src/codeflare_sdk/cluster Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -179,14 +179,16 @@ def up(self):
179
179
with open (self .app_wrapper_yaml ) as f :
180
180
yamls = yaml .load_all (f , Loader = yaml .FullLoader )
181
181
for resource in yamls :
182
- print (resource ["kind" ])
183
- # api_instance.create_namespaced_custom_object(
184
- # group="ray.io",
185
- # version="v1alpha1",
186
- # namespace=namespace,
187
- # plural="rayclusters",
188
- # body=aw,
189
- # )
182
+ if resource ["kind" ] == "RayCluster" :
183
+ api_instance .create_namespaced_custom_object (
184
+ group = "ray.io" ,
185
+ version = "v1alpha1" ,
186
+ namespace = namespace ,
187
+ plural = "rayclusters" ,
188
+ body = resource ,
189
+ )
190
+ else :
191
+ print (resource ["kind" ])
190
192
except Exception as e : # pragma: no cover
191
193
return _kube_api_error_handling (e )
192
194
You can’t perform that action at this time.
0 commit comments