Skip to content

Commit 26731da

Browse files
Align SDK with validating webhook behaviour on enableIngress
1 parent 80de58e commit 26731da

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
@@ -539,10 +539,10 @@ def _component_resources_up(
539539
.get("headGroupSpec", {})
540540
.get("enableIngress")
541541
)
542-
if resource["kind"] == "RayCluster" and enable_ingress is not False:
542+
if resource["kind"] == "RayCluster" and enable_ingress is True:
543543
name = resource["metadata"]["name"]
544544
print(
545-
f"Forbidden: RayCluster '{name}' has 'enableIngress' set to 'True' or is unset."
545+
f"Forbidden: RayCluster '{name}' has 'enableIngress' set to 'True'."
546546
)
547547
return
548548
_create_resources(yamls, namespace, api_instance)

0 commit comments

Comments
 (0)