Skip to content

Commit

Permalink
fix pod template override error
Browse files Browse the repository at this point in the history
Signed-off-by: Nelson Chen <[email protected]>
  • Loading branch information
arbaobao authored Feb 6, 2025
1 parent 7dfe7d4 commit 66d7257
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func BuildRawPod(ctx context.Context, tCtx pluginsCore.TaskExecutionContext) (*v

// handle pod template override
podTemplate := tCtx.TaskExecutionMetadata().GetOverrides().GetPodTemplate()
if tCtx.TaskExecutionMetadata().GetOverrides().GetPodTemplate() != nil {
if podTemplate.GetPodSpec() != nil {
podSpec, objectMeta, err = ApplyPodTemplateOverride(objectMeta, podTemplate)
if err != nil {
return nil, nil, "", err
Expand Down

0 comments on commit 66d7257

Please sign in to comment.