func DeploymentPodSpecChanged(newDep *appsv1.Deployment, oldDep *appsv1.Deployment) bool {
	lastAppliedPodTemplate, err := GetDeploymentLastAppliedPodTemplate(oldDep)
	if err != nil {
		klog.Warningf("error get last-applied-config of deployment %s/%s: %v", oldDep.Namespace, oldDep.Name, err)
		return true
	}
	return !apiequality.Semantic.DeepEqual(newDep.Spec.Template.Spec, lastAppliedPodTemplate)
}
// DeploymentPodSpecChanged checks whether the new deployment differs with the old one's last-applied-config
DeploymentPodSpecChanged checks whether the new deployment differs with the old one's last-applied-config
// DeploymentPodSpecChanged checks whether the new deployment differs with the old one ' s last - applied - config
func DeploymentPodSpecChanged(newDep *appsv1.Deployment, oldDep *appsv1.Deployment) bool {
	lastAppliedPodTemplate, err := GetDeploymentLastAppliedPodTemplate(oldDep)
	if err != nil {
		klog.Warningf("error get last-applied-config of deployment %s/%s: %v", oldDep.Namespace, oldDep.Name, err)
		return true
	}
	return !apiequality.Semantic.DeepEqual(newDep.Spec.Template.Spec, lastAppliedPodTemplate)
}
func DeploymentPodSpecChanged ( newDep * appsv1 . Deployment , oldDep * appsv1 . Deployment ) bool { lastAppliedPodTemplate , err := GetDeploymentLastAppliedPodTemplate ( oldDep ) if err != nil { klog . Warningf ( " " , oldDep . Namespace , oldDep . Name , err ) return true } return ! apiequality . Semantic . DeepEqual ( newDep . Spec . Template . Spec , lastAppliedPodTemplate ) }
DeploymentPodSpecChanged checks whether the new deployment differs with the old one's last-applied-config
DeploymentPodSpecChanged checks whether the new deployment differs with the old one ' s last - applied - config