// createOrUpdateHPA Checks if auto scaling is enabled and
//create or update horizontal autoscaler for the deployment
createOrUpdateHPA Checks if auto scaling is enabled and
create or update horizontal autoscaler for the deployment
// createOrUpdateHPA Checks if auto scaling is enabled and // create or update horizontal autoscaler for the deployment
func (r *ReconcileIntegration) createOrUpdateHPA(config EIConfigNew) error {
	var autoScaleEnabled bool
	autoScaleEnabled, _ = strconv.ParseBool(config.integration.Spec.AutoScale.Enabled)
	if autoScaleEnabled {
		hpa := createIntegrationHPA(config)
		err := k8s.Apply(&r.client, hpa)
		return err
	}
	return nil
}
func ( r * ReconcileIntegration ) createOrUpdateHPA ( config EIConfigNew ) error { var autoScaleEnabled bool autoScaleEnabled , _ = strconv . ParseBool ( config . integration . Spec . AutoScale . Enabled ) if autoScaleEnabled { hpa := createIntegrationHPA ( config ) err := k8s . Apply ( & r . client , hpa ) return err } return nil }
createOrUpdateHPA Checks if auto scaling is enabled and
create or update horizontal autoscaler for the deployment
createOrUpdateHPA Checks if auto scaling is enabled and create or update horizontal autoscaler for the deployment