Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dc7021d

Browse files
committedDec 9, 2024·
Adds UPDATE to the RayCluster Mutating Webhook so apply can be applied
1 parent ffb0b99 commit dc7021d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎config/webhook/manifests.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ webhooks:
4040
- v1
4141
operations:
4242
- CREATE
43+
- UPDATE
4344
resources:
4445
- rayclusters
4546
sideEffects: None

‎pkg/controllers/raycluster_webhook.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func SetupRayClusterWebhookWithManager(mgr ctrl.Manager, cfg *config.KubeRayConf
5656
Complete()
5757
}
5858

59-
// +kubebuilder:webhook:path=/mutate-ray-io-v1-raycluster,mutating=true,failurePolicy=fail,sideEffects=None,groups=ray.io,resources=rayclusters,verbs=create,versions=v1,name=mraycluster.ray.openshift.ai,admissionReviewVersions=v1
59+
// +kubebuilder:webhook:path=/mutate-ray-io-v1-raycluster,mutating=true,failurePolicy=fail,sideEffects=None,groups=ray.io,resources=rayclusters,verbs=create;update,versions=v1,name=mraycluster.ray.openshift.ai,admissionReviewVersions=v1
6060
// +kubebuilder:webhook:path=/validate-ray-io-v1-raycluster,mutating=false,failurePolicy=fail,sideEffects=None,groups=ray.io,resources=rayclusters,verbs=create;update,versions=v1,name=vraycluster.ray.openshift.ai,admissionReviewVersions=v1
6161

6262
type rayClusterWebhook struct {

0 commit comments

Comments
 (0)
Please sign in to comment.