Skip to content

Commit

Permalink
Fix Jsonnet implementation override (#920)
Browse files Browse the repository at this point in the history
In the case of an export, the Jsonnet implementation set in specific environments should override the one set globally with the CLI args.
  • Loading branch information
julienduchesne authored Aug 29, 2023
1 parent a8a687c commit 7345b9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/tanka/parallel.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ func parallelLoadEnvironments(envs []*v1alpha1.Environment, opts parallelOpts) (
for _, env := range envs {
o := opts.Opts

if o.JsonnetImplementation == "" {
if env.Spec.ExportJsonnetImplementation != "" {
log.Trace().
Str("name", env.Metadata.Name).
Str("implementation", env.Spec.ExportJsonnetImplementation).
Msg("Using custom Jsonnet implementation")
o.JsonnetImplementation = env.Spec.ExportJsonnetImplementation
}

Expand Down

0 comments on commit 7345b9d

Please sign in to comment.