diff --git a/config/default/webhookcainjection_patch.yaml b/config/default/webhookcainjection_patch.yaml index 33e8bcba..1e86d7ef 100644 --- a/config/default/webhookcainjection_patch.yaml +++ b/config/default/webhookcainjection_patch.yaml @@ -16,6 +16,6 @@ apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: - name: servingruntime.serving.kserve.io + name: modelmesh-servingruntime.serving.kserve.io annotations: cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE_PLACEHOLDER)/$(CERTIFICATE_NAME_PLACEHOLDER) diff --git a/config/webhook/manifests.yaml b/config/webhook/manifests.yaml index 5cd4b89d..28debc1d 100644 --- a/config/webhook/manifests.yaml +++ b/config/webhook/manifests.yaml @@ -14,7 +14,7 @@ apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: - name: servingruntime.serving.kserve.io + name: modelmesh-servingruntime.serving.kserve.io webhooks: - admissionReviewVersions: - v1 diff --git a/scripts/self-signed-ca.sh b/scripts/self-signed-ca.sh index e91a1b7f..09e1817b 100755 --- a/scripts/self-signed-ca.sh +++ b/scripts/self-signed-ca.sh @@ -32,7 +32,7 @@ The following flags are optional. --service Service name of webhook. Default: modelmesh-webhook-server-service --namespace Namespace where webhook service and secret reside. Default: model-serving --secret Secret name for CA certificate and server certificate/key pair. Default: modelmesh-webhook-server-cert - --webhookName Name for the mutating and validating webhook config. Default: servingruntime.serving.kserve.io + --webhookName Name for the mutating and validating webhook config. Default: modelmesh-servingruntime.serving.kserve.io --webhookDeployment deployment name of the webhook controller. Default: modelmesh-controller EOF exit 1 @@ -70,7 +70,7 @@ done [ -z ${secret} ] && secret=modelmesh-webhook-server-cert [ -z ${namespace} ] && namespace=model-serving [ -z ${webhookDeployment} ] && webhookDeployment=modelmesh-controller -[ -z ${webhookName} ] && webhookName=servingruntime.serving.kserve.io +[ -z ${webhookName} ] && webhookName=modelmesh-servingruntime.serving.kserve.io [ -z ${service} ] && service=modelmesh-webhook-server-service webhookDeploymentName=${webhookDeployment} webhookConfigName=${webhookName}