From 93c420d5a8a5b1479b4d21b8e7267f63854f4adf Mon Sep 17 00:00:00 2001 From: richardli1598 Date: Sun, 21 Apr 2024 15:47:34 +0800 Subject: [PATCH] fix: fix public service creation Signed-off-by: richardli1598 --- pkg/apiserver/handler/publicserviceinstance_handler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/apiserver/handler/publicserviceinstance_handler.go b/pkg/apiserver/handler/publicserviceinstance_handler.go index 5cc5e40..43851e7 100644 --- a/pkg/apiserver/handler/publicserviceinstance_handler.go +++ b/pkg/apiserver/handler/publicserviceinstance_handler.go @@ -100,6 +100,8 @@ func CreateOrUpdatePublicServiceInstanceHandler(ctx *gin.Context) { return } + ins.Name = ctx.Param("instanceName") + ins.Namespace = utils.InstanceNamespace _, err = openappHelper.OpenAPPClient.ServiceV1alpha1().PublicServiceInstances(utils.InstanceNamespace). Create(context.Background(), &ins, metav1.CreateOptions{}) if err != nil {