You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2023/10/11 14:19:25 UTC

[camel-k] 01/02: chore(build): remove unused code

This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit c0f8f0dd4a30d9be1f02b8fb45464957a82a6742
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Wed Oct 11 12:14:11 2023 +0200

    chore(build): remove unused code
    
    Ref #3011
---
 pkg/builder/image.go | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/pkg/builder/image.go b/pkg/builder/image.go
index 5def5a525..c1b2ef6c2 100644
--- a/pkg/builder/image.go
+++ b/pkg/builder/image.go
@@ -33,8 +33,11 @@ import (
 )
 
 const (
-	ContextDir      = "context"
-	DeploymentDir   = "/deployments"
+	// ContextDir is the directory used to package the container.
+	ContextDir = "context"
+	// DeploymentDir is the directory used in the runtime application to deploy the artifacts.
+	DeploymentDir = "/deployments"
+	// DependenciesDir is the directory used to store required dependencies.
 	DependenciesDir = "dependencies"
 )
 
@@ -136,9 +139,6 @@ func incrementalImageContext(ctx *builderContext) error {
 					ctx.SelectedArtifacts = append(ctx.SelectedArtifacts, entry)
 				}
 			}
-		} else if ctx.BaseImage == "" {
-			// TODO: transient workaround to be removed in 1.8.x
-			ctx.BaseImage = defaults.BaseImage()
 		}
 
 		return nil