Add warning log event
@@ -54,6 +54,8 @@ func (r *Reconciler) syncDeployment(origDeployment *appsv1.Deployment) (*appsv1.
replicas := int32(*kv.Spec.Infra.Replicas)
if deployment.Spec.Replicas == nil || *deployment.Spec.Replicas != replicas {
deployment.Spec.Replicas = &replicas
+ r.recorder.Eventf(deployment, corev1.EventTypeWarning, "AdvancedFeatureUse", "applying custom number of infra replica. this is an advanced feature that prevents "+
+ "auto-scaling for core kubevirt components. Please use with caution!")
}
}
