// ToStatefulSet transforms pet set into StatefulSet object returned by API.
ToStatefulSet transforms pet set into StatefulSet object returned by API.
// ToStatefulSet transforms pet set into StatefulSet object returned by API .
func ToStatefulSet(statefulSet *apps.StatefulSet, podInfo *common.PodInfo) StatefulSet {
	return StatefulSet{
		ObjectMeta:      common.NewObjectMeta(statefulSet.ObjectMeta),
		TypeMeta:        common.NewTypeMeta(common.ResourceKindStatefulSet),
		ContainerImages: common.GetContainerImages(&statefulSet.Spec.Template.Spec),
		Pods:            *podInfo,
	}
}
func ToStatefulSet ( statefulSet * apps . StatefulSet , podInfo * common . PodInfo ) StatefulSet { return StatefulSet { ObjectMeta : common . NewObjectMeta ( statefulSet . ObjectMeta ) , TypeMeta : common . NewTypeMeta ( common . ResourceKindStatefulSet ) , ContainerImages : common . GetContainerImages ( & statefulSet . Spec . Template . Spec ) , Pods : * podInfo , } }
ToStatefulSet transforms pet set into StatefulSet object returned by API.
ToStatefulSet transforms pet set into StatefulSet object returned by API .