func (s *serviceController) UpdateService(svc *corev1.Service) error {
	return s.client.Update(context.TODO(), svc)
}
UpdateService implement the IServiceControl.Interface.
package k8sutil
import (
	"context"
	corev1 "k8s.io/api/core/v1"
	"k8s.io/apimachinery/pkg/types"
	"sigs.k8s.io/controller-runtime/pkg/client"
)
type IServiceControl interface {
	CreateService(*corev1.Service) error
	UpdateService(*corev1.Service) error
	DeleteService(*corev1.Service) error
	DeleteServiceByName(namespace, name string) error
	GetService(namespace, name string) (*corev1.Service, error)
}
type serviceController struct {
	client client.Client
}
func NewServiceController(client client.Client) IServiceControl {
	return &serviceController{client: client}
}
func (s *serviceController) CreateService(svc *corev1.Service) error {
	return s.client.Create(context.TODO(), svc)
}