Skip to content

Commit

Permalink
chore: add featureflag to change default buildkit setting
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Oct 7, 2024
1 parent 7ad87f8 commit 204d5e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,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
Expand Down

0 comments on commit 204d5e5

Please sign in to comment.