Skip to content

Commit cdf154a

Browse files
Add missing validations on RayCluster creation
1 parent ffc555a commit cdf154a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/controllers/raycluster_webhook.go

+6
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ func (w *rayClusterWebhook) ValidateCreate(ctx context.Context, obj runtime.Obje
8989

9090
allErrors = append(allErrors, validateIngress(rayCluster)...)
9191

92+
if ptr.Deref(w.Config.RayDashboardOAuthEnabled, true) {
93+
allErrors = append(allErrors, validateOAuthProxyContainer(rayCluster)...)
94+
allErrors = append(allErrors, validateOAuthProxyVolume(rayCluster)...)
95+
allErrors = append(allErrors, validateHeadGroupServiceAccountName(rayCluster)...)
96+
}
97+
9298
return warnings, allErrors.ToAggregate()
9399
}
94100

0 commit comments

Comments
 (0)