Skip to content

Commit

Permalink
fix(kubernetes): fix runjob stage init (#7029)
Browse files Browse the repository at this point in the history
fix stage initialization by setting the stage's application config if it
doesn't exist. this field is required to be set for the stage to work.
initially i had assumed the that BasicSettings component would configure
it.
  • Loading branch information
ethanfrogers authored May 20, 2019
1 parent f1ca123 commit 3fd183e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ export class KubernetesV2RunJobStageConfig extends React.Component<IStageConfigP
credentials: [],
};

constructor(props: IStageConfigProps) {
super(props);
const { stage, application } = this.props;
if (!stage.application) {
stage.application = application.name;
}
}

public outputOptions = [
{ label: 'None', value: 'none' },
{ label: 'Logs', value: 'propertyFile' },
Expand Down

0 comments on commit 3fd183e

Please sign in to comment.