-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cf): Display details in pipeline for services
spinnaker/spinnaker#3826 Co-Authored-By: Stu Pollock <spollock@pivotal.io>
- Loading branch information
1 parent
e6a1206
commit 39fe4c6
Showing
8 changed files
with
59 additions
and
51 deletions.
There are no files selected for viewing
23 changes: 0 additions & 23 deletions
23
...udfoundry/src/pipeline/stages/deployService/CloudfoundryDeployServiceExecutionDetails.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
...foundry/src/pipeline/stages/destroyService/CloudfoundryDestroyServiceExecutionDetails.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './widgets'; | ||
export * from './forms'; | ||
export * from './pipeline'; | ||
export * from './widgets'; |
1 change: 1 addition & 0 deletions
1
app/scripts/modules/cloudfoundry/src/presentation/pipeline/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './stages'; |
51 changes: 51 additions & 0 deletions
51
...les/cloudfoundry/src/presentation/pipeline/stages/CloudfoundryServiceExecutionDetails.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import * as React from 'react'; | ||
import { get } from 'lodash'; | ||
|
||
import { | ||
AccountTag, | ||
ExecutionDetailsSection, | ||
IExecutionDetailsSectionProps, | ||
StageExecutionLogs, | ||
StageFailureMessage, | ||
} from '@spinnaker/core'; | ||
|
||
export function CloudfoundryServiceExecutionDetails(props: IExecutionDetailsSectionProps) { | ||
const { stage } = props; | ||
const { context } = stage; | ||
const account = get(context, 'service.account', undefined); | ||
const region = get(context, 'service.region', undefined); | ||
const serviceInstanceName = get(context, 'service.instance.name', undefined); | ||
return ( | ||
<ExecutionDetailsSection name={props.name} current={props.current}> | ||
<div className="step-section-details"> | ||
<div className="row"> | ||
<div className="col-md-12"> | ||
<dl className="dl-horizontal"> | ||
<dt>Account</dt> | ||
<dd> | ||
<AccountTag account={account} /> | ||
</dd> | ||
<dt>Region</dt> | ||
<dd> | ||
{region} | ||
<br /> | ||
</dd> | ||
<dt>Service Instance Name</dt> | ||
<dd> | ||
{serviceInstanceName} | ||
<br /> | ||
</dd> | ||
</dl> | ||
</div> | ||
</div> | ||
</div> | ||
<StageFailureMessage stage={stage} message={stage.failureMessage} /> | ||
<StageExecutionLogs stage={stage} /> | ||
</ExecutionDetailsSection> | ||
); | ||
} | ||
|
||
// eslint-disable-next-line | ||
export namespace CloudfoundryServiceExecutionDetails { | ||
export const title = 'cloudfoundryServiceConfig'; | ||
} |
1 change: 1 addition & 0 deletions
1
app/scripts/modules/cloudfoundry/src/presentation/pipeline/stages/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './CloudfoundryServiceExecutionDetails'; |