Skip to content

Commit 1518c68

Browse files
Rename RayCluster webhooks
1 parent 1c85429 commit 1518c68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/webhook/manifests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ webhooks:
1313
namespace: system
1414
path: /mutate-ray-io-v1-raycluster
1515
failurePolicy: Fail
16-
name: mraycluster.kb.io
16+
name: mraycluster.ray.openshift.ai
1717
rules:
1818
- apiGroups:
1919
- ray.io
@@ -39,7 +39,7 @@ webhooks:
3939
namespace: system
4040
path: /validate-ray-io-v1-raycluster
4141
failurePolicy: Fail
42-
name: vraycluster.kb.io
42+
name: vraycluster.ray.openshift.ai
4343
rules:
4444
- apiGroups:
4545
- ray.io

pkg/controllers/raycluster_webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ func SetupRayClusterWebhookWithManager(mgr ctrl.Manager, cfg *config.KubeRayConf
5252
Complete()
5353
}
5454

55-
// +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.kb.io,admissionReviewVersions=v1
56-
// +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.kb.io,admissionReviewVersions=v1
55+
// +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
56+
// +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
5757

5858
type rayClusterWebhook struct {
5959
Config *config.KubeRayConfiguration

0 commit comments

Comments
 (0)