Skip to content

Commit

Permalink
fix(kubernetes): add StageFailureMessage to Bake Manifest execution d…
Browse files Browse the repository at this point in the history
…etails (#7354)
  • Loading branch information
maggieneterval committed Aug 22, 2019
1 parent 5fae6ef commit 48b7195
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@ import {
IArtifact,
IExecutionDetailsSectionProps,
ManifestYaml,
StageFailureMessage,
} from '@spinnaker/core';

export class BakeManifestDetailsTab extends React.Component<IExecutionDetailsSectionProps> {
public static title = 'bakedManifest';

public render() {
const bakedArtifacts: IArtifact[] = (this.props.stage.context.artifacts || []).filter(
const { current, name, stage } = this.props;
const bakedArtifacts: IArtifact[] = (stage.context.artifacts || []).filter(
(a: IArtifact) => a.type === 'embedded/base64',
);
return (
<ExecutionDetailsSection name={this.props.name} current={this.props.current}>
<ExecutionDetailsSection name={name} current={current}>
<StageFailureMessage stage={stage} message={stage.failureMessage} />
{bakedArtifacts.map((artifact, i) => (
<ManifestYaml
key={i}
Expand Down

0 comments on commit 48b7195

Please sign in to comment.