func (priorityLevelConfigurationStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
	newPriorityLevelConfiguration := obj.(*flowcontrol.PriorityLevelConfiguration)
	oldPriorityLevelConfiguration := old.(*flowcontrol.PriorityLevelConfiguration)

	// Spec updates bump the generation so that we can distinguish between status updates.
	if !apiequality.Semantic.DeepEqual(newPriorityLevelConfiguration.Spec, oldPriorityLevelConfiguration.Spec) {
		newPriorityLevelConfiguration.Generation = oldPriorityLevelConfiguration.Generation + 1
	}
	newPriorityLevelConfiguration.Status = oldPriorityLevelConfiguration.Status
}
// PrepareForUpdate clears fields that are not allowed to be set by end users on update.
PrepareForUpdate clears fields that are not allowed to be set by end users on update.
// PrepareForUpdate clears fields that are not allowed to be set by end users on update .
func (priorityLevelConfigurationStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
	newPriorityLevelConfiguration := obj.(*flowcontrol.PriorityLevelConfiguration)
	oldPriorityLevelConfiguration := old.(*flowcontrol.PriorityLevelConfiguration)
	if !apiequality.Semantic.DeepEqual(newPriorityLevelConfiguration.Spec, oldPriorityLevelConfiguration.Spec) {
		newPriorityLevelConfiguration.Generation = oldPriorityLevelConfiguration.Generation + 1
	}
	newPriorityLevelConfiguration.Status = oldPriorityLevelConfiguration.Status
}
func ( priorityLevelConfigurationStrategy ) PrepareForUpdate ( ctx context . Context , obj , old runtime . Object ) { newPriorityLevelConfiguration := obj . ( * flowcontrol . PriorityLevelConfiguration ) oldPriorityLevelConfiguration := old . ( * flowcontrol . PriorityLevelConfiguration ) if ! apiequality . Semantic . DeepEqual ( newPriorityLevelConfiguration . Spec , oldPriorityLevelConfiguration . Spec ) { newPriorityLevelConfiguration . Generation = oldPriorityLevelConfiguration . Generation + 1 } newPriorityLevelConfiguration . Status = oldPriorityLevelConfiguration . Status }
PrepareForUpdate clears fields that are not allowed to be set by end users on update.
PrepareForUpdate clears fields that are not allowed to be set by end users on update .
// Spec updates bump the generation so that we can distinguish between status updates.