// createOrUpdateDeployment updates the existing deployment, if not create a new one
createOrUpdateDeployment updates the existing deployment, if not create a new one
// createOrUpdateDeployment updates the existing deployment if not create a new one
func (r *ReconcileIntegration) createOrUpdateDeployment(config EIConfigNew) (*appsv1.Deployment, error) {
	deployment := r.deploymentForIntegration(config)
	err := k8s.Apply(&r.client, deployment)		
	return deployment, err
}
func ( r * ReconcileIntegration ) createOrUpdateDeployment ( config EIConfigNew ) ( * appsv1 . Deployment , error ) { deployment := r . deploymentForIntegration ( config ) err := k8s . Apply ( & r . client , deployment ) return deployment , err }
createOrUpdateDeployment updates the existing deployment, if not create a new one
createOrUpdateDeployment updates the existing deployment if not create a new one
//this call modifies the deployment