git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GitHub] nicolaferraro commented on a change in pull request #253: add an option to always generate a docker image


nicolaferraro commented on a change in pull request #253: add an option to always generate a docker image
URL: https://github.com/apache/camel-k/pull/253#discussion_r238965940
 
 

 ##########
 File path: pkg/trait/deployment.go
 ##########
 @@ -227,28 +287,35 @@ func getDeploymentFor(e *Environment) *appsv1.Deployment {
 	// Volumes :: Sources
 	//
 
-	for i, s := range e.Integration.Spec.Sources {
-		vols = append(vols, corev1.Volume{
-			Name: fmt.Sprintf("integration-source-%03d", i),
-			VolumeSource: corev1.VolumeSource{
-				ConfigMap: &corev1.ConfigMapVolumeSource{
-					LocalObjectReference: corev1.LocalObjectReference{
-						Name: fmt.Sprintf("%s-source-%03d", e.Integration.Name, i),
-					},
-					Items: []corev1.KeyToPath{
-						{
-							Key:  "integration",
-							Path: strings.TrimPrefix(s.Name, "/"),
+	if d.ContainerImage == false {
 
 Review comment:
   I think a similar thing should be done for the Knative trait.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@xxxxxxxxxxxxxxxx


With regards,
Apache Git Services