func (p *PodController) UpdatePod(pod *corev1.Pod) error {
	return p.client.Update(context.TODO(), pod)
}
UpdatePod implement the IPodControl.Interface.
package k8sutil
import (
	"context"
	corev1 "k8s.io/api/core/v1"
	"k8s.io/apimachinery/pkg/types"
	"sigs.k8s.io/controller-runtime/pkg/client"
)
type IPodControl interface {
	CreatePod(*corev1.Pod) error
	UpdatePod(*corev1.Pod) error
	DeletePod(*corev1.Pod) error
	DeletePodByName(namespace, name string) error
	GetPod(namespace, name string) (*corev1.Pod, error)
}
type PodController struct {
	client client.Client
}
func NewPodController(client client.Client) IPodControl {
	return &PodController{client: client}
}
func (p *PodController) CreatePod(pod *corev1.Pod) error {
	return p.client.Create(context.TODO(), pod)
}