-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1793 from weaveworks/1710-helm-pipe-details
Show Helm Release status info on pipeline details view
- Loading branch information
Showing
13 changed files
with
751 additions
and
285 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
30 changes: 30 additions & 0 deletions
30
ui-cra/src/components/Pipelines/PipelineDetails/WorkloadStatus.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,30 @@ | ||
import { Flex, KubeStatusIndicator } from '@weaveworks/weave-gitops'; | ||
import styled from 'styled-components'; | ||
import { WorkloadStatus as WorkloadStatusType } from '../../../api/pipelines/types.pb'; | ||
|
||
interface Props { | ||
className?: string; | ||
workload?: WorkloadStatusType; | ||
} | ||
|
||
function WorkloadStatus({ className, workload }: Props) { | ||
return ( | ||
<div className={className}> | ||
<Flex align> | ||
<div style={{ marginRight: 4 }}> | ||
<KubeStatusIndicator short conditions={workload?.conditions || []} /> | ||
</div> | ||
<div>{workload?.name}</div> | ||
</Flex> | ||
</div> | ||
); | ||
} | ||
|
||
export default styled(WorkloadStatus).attrs({ className: 'WorkloadStatus' })` | ||
font-size: ${props => props.theme.fontSizes.large}; | ||
/* Hack to hide the text; we only want the icon here */ | ||
${KubeStatusIndicator} span { | ||
display: none; | ||
} | ||
`; |
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
Oops, something went wrong.