Skip to content

Commit

Permalink
fix(flipt): correctly render env in migration job
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeMac committed Jun 17, 2024
1 parent 8e9c846 commit 3b46603
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions flipt/templates/migrationjob.cue
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,16 @@ import (
name: "FLIPT_META_STATE_DIRECTORY"
value: "/hom/flipt/.config/flipt"
},
[
for k, v in #config.env {
name: k
if v.valueFrom != _|_ {
valueFrom: v.valueFrom
}
if v.valueFrom == _|_ {
value: v
}
},
],
] + [
for k, v in #config.env {
name: k
if v.valueFrom != _|_ {
valueFrom: v.valueFrom
}
if v.valueFrom == _|_ {
value: v
}
},
]
volumeMounts: [{
mountPath: "/home/flipt/config/default.yml"
Expand Down

0 comments on commit 3b46603

Please sign in to comment.