func BackupConfigurationEqual(old, new *v1beta1_api.BackupConfiguration) bool {
	if (old == nil && new != nil) || (old != nil && new == nil) {
		return false
	}
	if old == nil && new == nil {
		return true
	}

	// If "spec.paused" field is changed, we don't need to restart the workload.
	// Hence, we will compare the new and old BackupConfiguration spec after making
	// `spec.paused` field equal. This will avoid the restart.
	// We should not change the original value of "spec.paused" field of the old BackupConfiguration.
	// Hence, we will keep the original value in a temporary variable and re-assign the original value
	// after the comparison.

	oldSpec := &old.Spec
	newSpec := &new.Spec

	oldVal := oldSpec.Paused
	oldSpec.Paused = newSpec.Paused
	result := reflect.DeepEqual(oldSpec, newSpec)
	oldSpec.Paused = oldVal
	return result
}
// BackupConfigurationEqual check whether two BackupConfigurations has same specification.
BackupConfigurationEqual check whether two BackupConfigurations has same specification.
// BackupConfigurationEqual check whether two BackupConfigurations has same specification .
func BackupConfigurationEqual(old, new *v1beta1_api.BackupConfiguration) bool {
	if (old == nil && new != nil) || (old != nil && new == nil) {
		return false
	}
	if old == nil && new == nil {
		return true
	}
	oldSpec := &old.Spec
	newSpec := &new.Spec
	oldVal := oldSpec.Paused
	oldSpec.Paused = newSpec.Paused
	result := reflect.DeepEqual(oldSpec, newSpec)
	oldSpec.Paused = oldVal
	return result
}
func BackupConfigurationEqual ( old , new * v1beta1_api . BackupConfiguration ) bool { if ( old == nil && new != nil ) || ( old != nil && new == nil ) { return false } if old == nil && new == nil { return true } oldSpec := & old . Spec newSpec := & new . Spec oldVal := oldSpec . Paused oldSpec . Paused = newSpec . Paused result := reflect . DeepEqual ( oldSpec , newSpec ) oldSpec . Paused = oldVal return result }
BackupConfigurationEqual check whether two BackupConfigurations has same specification.
BackupConfigurationEqual check whether two BackupConfigurations has same specification .
// If "spec.paused" field is changed, we don't need to restart the workload. // Hence, we will compare the new and old BackupConfiguration spec after making // `spec.paused` field equal. This will avoid the restart. // We should not change the original value of "spec.paused" field of the old BackupConfiguration. // Hence, we will keep the original value in a temporary variable and re-assign the original value // after the comparison.