Skip to content

Commit

Permalink
feat(helm): improve logging when baking helm charts (#751)
Browse files Browse the repository at this point in the history
Co-authored-by: David Byron <david.byron@avast.com>
  • Loading branch information
dbyron0 and David Byron committed Dec 8, 2020
1 parent 8662444 commit 0bffd78
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
import java.util.UUID;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class HelmTemplateUtils {
private static final String MANIFEST_SEPARATOR = "---\n";
private static final Pattern REGEX_TESTS_MANIFESTS =
Expand Down Expand Up @@ -51,6 +53,8 @@ public BakeRecipe buildBakeRecipe(BakeManifestEnvironment env, HelmBakeManifestR
if ("git/repo".equals(artifactType)) {
env.downloadArtifactTarballAndExtract(artifactDownloader, helmTemplateArtifact);

log.info("helmChartFilePath: '{}'", request.getHelmChartFilePath());

// If there's no helm chart path specified, assume it lives in the root of
// the git/repo artifact.
templatePath =
Expand All @@ -63,6 +67,8 @@ public BakeRecipe buildBakeRecipe(BakeManifestEnvironment env, HelmBakeManifestR
}
}

log.info("path to Chart.yaml: {}", templatePath);

try {
// not a stream to keep exception handling cleaner
for (Artifact valueArtifact : inputArtifacts.subList(1, inputArtifacts.size())) {
Expand Down

0 comments on commit 0bffd78

Please sign in to comment.