func (c *podConverter) ResourceType() runtime.Object {
	return c.podResourceType
}
ResourceType to watch and list
package conversions
import (
	"fmt"
	corev1 "k8s.io/api/core/v1"
	metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/runtime"
)
type podConverter struct {
	podResource     string
	podResourceType runtime.Object
}
func NewPodConverter() *podConverter {
	return &podConverter{
		podResource:     "pods",
		podResourceType: &corev1.Pod{},
	}
}
func (c *podConverter) ConvertObject(originalObj interface{}) (convertedObj interface{}, err error) {
	pod, ok := originalObj.(*corev1.Pod)
	if !ok {
		return nil, fmt.Errorf("failed to convert object to pod")
	}
	return c.stripDownPod(pod), nil
}
func (c *podConverter) ConvertList(originalList interface{}) (convertedList interface{}, err error) {
	podList, ok := originalList.(*corev1.PodList)
	if !ok {
		return nil, fmt.Errorf("failed to convert object to pod list")
	}
	strippedPodList := corev1.PodList{
		ListMeta: metaV1.ListMeta{
			Continue:        podList.Continue,
			ResourceVersion: podList.ResourceVersion,
		},
	}
	for _, pod := range podList.Items {
		strippedPod := c.stripDownPod(&pod)
		strippedPodList.Items = append(strippedPodList.Items, *strippedPod)
	}
	return &strippedPodList, nil
}
func (c *podConverter) Resource() string {
	return c.podResource
}