Skip to content

Commit

Permalink
chore: add featureflag to change default buildkit setting (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon authored Oct 13, 2024
1 parent 50c4ebf commit ac5c193
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 @@ -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
Expand Down

0 comments on commit ac5c193

Please sign in to comment.