Skip to content

Commit 56163ca

Browse files
Align SDK with validating webhook behaviour on enableIngress
1 parent f836653 commit 56163ca

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
@@ -558,10 +558,10 @@ def _component_resources_up(
558558
.get("headGroupSpec", {})
559559
.get("enableIngress")
560560
)
561-
if resource["kind"] == "RayCluster" and enable_ingress is not False:
561+
if resource["kind"] == "RayCluster" and enable_ingress is True:
562562
name = resource["metadata"]["name"]
563563
print(
564-
f"Forbidden: RayCluster '{name}' has 'enableIngress' set to 'True' or is unset."
564+
f"Forbidden: RayCluster '{name}' has 'enableIngress' set to 'True'."
565565
)
566566
return
567567
_create_resources(yamls, namespace, api_instance)

0 commit comments

Comments
 (0)