func DropDisabledTemplateFields(podTemplate, oldPodTemplate *api.PodTemplateSpec) {
	var (
		podSpec           *api.PodSpec
		podAnnotations    map[string]string
		oldPodSpec        *api.PodSpec
		oldPodAnnotations map[string]string
	)
	if podTemplate != nil {
		podSpec = &podTemplate.Spec
		podAnnotations = podTemplate.Annotations
	}
	if oldPodTemplate != nil {
		oldPodSpec = &oldPodTemplate.Spec
		oldPodAnnotations = oldPodTemplate.Annotations
	}
	dropDisabledFields(podSpec, podAnnotations, oldPodSpec, oldPodAnnotations)
}
// DropDisabledTemplateFields removes disabled fields from the pod template metadata and spec.
// This should be called from PrepareForCreate/PrepareForUpdate for all resources containing a PodTemplateSpec
DropDisabledTemplateFields removes disabled fields from the pod template metadata and spec.
This should be called from PrepareForCreate/PrepareForUpdate for all resources containing a PodTemplateSpec
// DropDisabledTemplateFields removes disabled fields from the pod template metadata and spec . // This should be called from PrepareForCreate / PrepareForUpdate for all resources containing a PodTemplateSpec
func DropDisabledTemplateFields(podTemplate, oldPodTemplate *api.PodTemplateSpec) {
	var (
		podSpec           *api.PodSpec
		podAnnotations    map[string]string
		oldPodSpec        *api.PodSpec
		oldPodAnnotations map[string]string
	)
	if podTemplate != nil {
		podSpec = &podTemplate.Spec
		podAnnotations = podTemplate.Annotations
	}
	if oldPodTemplate != nil {
		oldPodSpec = &oldPodTemplate.Spec
		oldPodAnnotations = oldPodTemplate.Annotations
	}
	dropDisabledFields(podSpec, podAnnotations, oldPodSpec, oldPodAnnotations)
}
func DropDisabledTemplateFields ( podTemplate , oldPodTemplate * api . PodTemplateSpec ) { var ( podSpec * api . PodSpec podAnnotations map [ string ] string oldPodSpec * api . PodSpec oldPodAnnotations map [ string ] string ) if podTemplate != nil { podSpec = & podTemplate . Spec podAnnotations = podTemplate . Annotations } if oldPodTemplate != nil { oldPodSpec = & oldPodTemplate . Spec oldPodAnnotations = oldPodTemplate . Annotations } dropDisabledFields ( podSpec , podAnnotations , oldPodSpec , oldPodAnnotations ) }
DropDisabledTemplateFields removes disabled fields from the pod template metadata and spec.
DropDisabledTemplateFields removes disabled fields from the pod template metadata and spec .