func WPAutoscalerMetricsUpdate(new, old *v1alpha1.WatermarkPodAutoscaler) bool {
	var oldAnn, newAnn string
	if val, ok := old.Annotations["kubectl.kubernetes.io/last-applied-configuration"]; ok {
		oldAnn = val
	}
	if val, ok := new.Annotations["kubectl.kubernetes.io/last-applied-configuration"]; ok {
		newAnn = val
	}

	return old.ResourceVersion == new.ResourceVersion || oldAnn != newAnn
}
// WPAutoscalerMetricsUpdate will return true if the applied configuration of the Autoscaler has changed.
// We only care about updates of the metrics or their scopes.
// We also want to process the resync events, which can be identified with the resver.
WPAutoscalerMetricsUpdate will return true if the applied configuration of the Autoscaler has changed.
We only care about updates of the metrics or their scopes.
We also want to process the resync events, which can be identified with the resver.
// WPAutoscalerMetricsUpdate will return true if the applied configuration of the Autoscaler has changed . // We only care about updates of the metrics or their scopes . // We also want to process the resync events which can be identified with the resver .
func WPAutoscalerMetricsUpdate(new, old *v1alpha1.WatermarkPodAutoscaler) bool {
	var oldAnn, newAnn string
	if val, ok := old.Annotations["kubectl.kubernetes.io/last-applied-configuration"]; ok {
		oldAnn = val
	}
	if val, ok := new.Annotations["kubectl.kubernetes.io/last-applied-configuration"]; ok {
		newAnn = val
	}
	return old.ResourceVersion == new.ResourceVersion || oldAnn != newAnn
}
func WPAutoscalerMetricsUpdate ( new , old * v1alpha1 . WatermarkPodAutoscaler ) bool { var oldAnn , newAnn string if val , ok := old . Annotations [ " " ] ; ok { oldAnn = val } if val , ok := new . Annotations [ " " ] ; ok { newAnn = val } return old . ResourceVersion == new . ResourceVersion || oldAnn != newAnn }
WPAutoscalerMetricsUpdate will return true if the applied configuration of the Autoscaler has changed.
WPAutoscalerMetricsUpdate will return true if the applied configuration of the Autoscaler has changed .