Skip to content

Commit

Permalink
Adds UPDATE to the RayCluster Mutating Webhook so apply can be applied
Browse files Browse the repository at this point in the history
  • Loading branch information
akram authored and openshift-merge-bot[bot] committed Dec 17, 2024
1 parent 9c96f44 commit 8ad4785
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/webhook/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ webhooks:
- v1
operations:
- CREATE
- UPDATE
resources:
- rayclusters
sideEffects: None
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/raycluster_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func SetupRayClusterWebhookWithManager(mgr ctrl.Manager, cfg *config.KubeRayConf
Complete()
}

// +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
// +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
// +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

type rayClusterWebhook struct {
Expand Down

0 comments on commit 8ad4785

Please sign in to comment.