Skip to content

Commit

Permalink
Undo changes in template.go from rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Graetz <[email protected]>
  • Loading branch information
fg91 committed Jan 14, 2024
1 parent 8be78ea commit 4bbdd6d
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions flyteplugins/go/tasks/pluginmachinery/tasklog/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,6 @@ func (input Input) templateVarsForScheme(scheme TemplateScheme) TemplateVars {
TemplateVar{defaultRegexes.ContainerName, input.ContainerName},
TemplateVar{defaultRegexes.ContainerID, containerID},
TemplateVar{defaultRegexes.Hostname, input.HostName},
TemplateVar{defaultRegexes.PodRFC3339StartTime, input.PodRFC3339StartTime},
TemplateVar{defaultRegexes.PodRFC3339FinishTime, input.PodRFC3339FinishTime},
TemplateVar{
defaultRegexes.PodUnixStartTime,
strconv.FormatInt(input.PodUnixStartTime, 10),
},
TemplateVar{
defaultRegexes.PodUnixFinishTime,
strconv.FormatInt(input.PodUnixFinishTime, 10),
},
)
if gotExtraTemplateVars {
vars = append(vars, input.ExtraTemplateVarsByScheme.Pod...)
Expand Down Expand Up @@ -187,6 +177,20 @@ func (input Input) templateVarsForScheme(scheme TemplateScheme) TemplateVars {
}
}

vars = append(
vars,
TemplateVar{defaultRegexes.PodRFC3339StartTime, input.PodRFC3339StartTime},
TemplateVar{defaultRegexes.PodRFC3339FinishTime, input.PodRFC3339FinishTime},
TemplateVar{
defaultRegexes.PodUnixStartTime,
strconv.FormatInt(input.PodUnixStartTime, 10),
},
TemplateVar{
defaultRegexes.PodUnixFinishTime,
strconv.FormatInt(input.PodUnixFinishTime, 10),
},
)

return vars
}

Expand Down

0 comments on commit 4bbdd6d

Please sign in to comment.