Skip to content

Commit

Permalink
fix: service account is not properly propagated from the execution info
Browse files Browse the repository at this point in the history
Signed-off-by: eugenejahn <[email protected]>
  • Loading branch information
eugenejahn committed Apr 13, 2022
1 parent 96a162d commit 3542030
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const ExecutionMetadataExtra: React.FC<{
maxParallelism,
rawOutputDataConfig,
authRole,
securityContext,
} = execution.spec;

const [launchPlanSpec, setLaunchPlanSpec] = React.useState<Partial<LaunchPlanSpec>>({});
Expand All @@ -54,7 +55,10 @@ export const ExecutionMetadataExtra: React.FC<{
},
{
label: ExecutionMetadataLabels.serviceAccount,
value: authRole?.kubernetesServiceAccount || ExecutionMetadataLabels.securityContextDefault,
value:
authRole?.kubernetesServiceAccount ||
securityContext?.runAs?.k8sServiceAccount ||
ExecutionMetadataLabels.securityContextDefault,
},
{
label: ExecutionMetadataLabels.rawOutputPrefix,
Expand Down

0 comments on commit 3542030

Please sign in to comment.