Skip to content

Commit a9bcce0

Browse files
Align SDK with validating webhook behaviour on enableIngress
1 parent 7e87599 commit a9bcce0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -560,10 +560,10 @@ def _component_resources_up(
560560
.get("headGroupSpec", {})
561561
.get("enableIngress")
562562
)
563-
if resource["kind"] == "RayCluster" and enable_ingress is not False:
563+
if resource["kind"] == "RayCluster" and enable_ingress is True:
564564
name = resource["metadata"]["name"]
565565
print(
566-
f"Forbidden: RayCluster '{name}' has 'enableIngress' set to 'True' or is unset."
566+
f"Forbidden: RayCluster '{name}' has 'enableIngress' set to 'True'."
567567
)
568568
return
569569
_create_resources(yamls, namespace, api_instance)

0 commit comments

Comments
 (0)