From ac5c1932ae692b1b7b9b03e1d82f5ad63472c3a0 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Mon, 14 Oct 2024 08:48:36 +1100 Subject: [PATCH] chore: add featureflag to change default buildkit setting (#380) --- internal/generator/generator.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/generator/generator.go b/internal/generator/generator.go index cfa0cbcf..0809f129 100644 --- a/internal/generator/generator.go +++ b/internal/generator/generator.go @@ -359,7 +359,12 @@ func NewGenerator( bk, _ := strconv.ParseBool(dockerBuildKit.Value) buildValues.DockerBuildKit = &bk } else { - buildValues.DockerBuildKit = helpers.BoolPtr(true) + lffDockerbuildkit := CheckFeatureFlag("DOCKER_BUILDKIT", buildValues.EnvironmentVariables, false) + if lffDockerbuildkit == "disabled" { + buildValues.DockerBuildKit = helpers.BoolPtr(false) + } else { + buildValues.DockerBuildKit = helpers.BoolPtr(true) + } } // get any lagoon service type overrides