Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | 261x 261x 261x 261x 261x 261x 261x 4x 4x 4x 261x | /*
* Copyright 2021 Harness Inc. All rights reserved.
* Use of this source code is governed by the PolyForm Shield 1.0.0 license
* that can be found in the licenses directory at the root of this repository, also available at
* https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt.
*/
import React from 'react'
import { Container, Layout, Icon, Text, StepProps } from '@wings-software/uicore'
import { Color } from '@harness/design-system'
import { useStrings } from 'framework/strings'
import CopyToClipboard from '@common/components/CopyToClipBoard/CopyToClipBoard'
import css from '../K8sDelegate/CreateK8sDelegate.module.scss'
const CommonProblems: React.FC<StepProps<null>> = () => {
const { getString } = useStrings()
const troubleshootLink = (
<a
href="https://ngdocs.harness.io/"
target="_blank"
rel="noreferrer"
style={{ textAlign: 'end', fontSize: '13px' }}
>
{getString('delegates.delegateNotInstalled.tabs.commonProblems.troubleshoot')}
</a>
)
return (
<>
<Layout.Vertical width={630} style={{ padding: '0px var(--spacing-large)' }}>
<Layout.Horizontal
spacing="medium"
style={{
borderBottom: '0.5px solid #B0B1C4',
justifyContent: 'center',
alignItems: 'center',
padding: 'var(--spacing-small) var(--spacing-medium)'
}}
>
<Icon name="support-troubleshoot" size={18} />
<Text color={Color.BLACK} font={{ size: 'medium', weight: 'bold' }} style={{ lineHeight: '22px' }}>
{getString('delegates.delegateNotInstalled.tabs.commonProblems.hereIsWhatYouCanDo')}
</Text>
</Layout.Horizontal>
<Layout.Vertical width={511} style={{ padding: 'var(--spacing-medium) 0px' }}>
<Text color={Color.BLACK} font={{ weight: 'bold' }}>
{getString('delegates.delegateNotInstalled.statusOfCluster')}
</Text>
{troubleshootLink}
<Container
intent="primary"
padding="small"
font={{
align: 'center'
}}
flex
className={css.verificationField}
>
<Text style={{ marginRight: '24px' }}>{getString('delegates.delegateNotInstalled.podCommand')}</Text>
<CopyToClipboard content={getString('delegates.delegateNotInstalled.podCommand')} />
</Container>
</Layout.Vertical>
<Layout.Vertical width={511} style={{ padding: 'var(--spacing-small) 0px' }}>
<Text color={Color.BLACK} font={{ weight: 'bold' }}>
{getString('delegates.delegateNotInstalled.tabs.commonProblems.checkTheDelegateLogs')}
</Text>
{troubleshootLink}
<Container
intent="primary"
padding="small"
font={{
align: 'center'
}}
flex
className={css.verificationField}
>
<Text style={{ marginRight: '24px' }}>{getString('delegates.delegateNotInstalled.verifyField2')}</Text>
<CopyToClipboard content={getString('delegates.delegateNotInstalled.verifyField2')} />
</Container>
</Layout.Vertical>
<Layout.Horizontal width={511} style={{ padding: 'var(--spacing-small) 0px' }}>
<Text lineClamp={3} font="normal" color={Color.GREY_700} style={{ lineHeight: '24px' }}>
{getString('delegates.delegateNotInstalled.tabs.commonProblems.description1')}
</Text>
</Layout.Horizontal>
<Layout.Vertical width={511} style={{ padding: 'var(--spacing-small) 0px' }}>
<Text color={Color.BLACK} font={{ weight: 'bold' }}>
{getString('delegates.delegateNotInstalled.tabs.commonProblems.description2')}
</Text>
{troubleshootLink}
<Container
intent="primary"
padding="small"
font={{
align: 'center'
}}
flex
className={css.verificationField}
>
<Text style={{ marginRight: '24px' }}>{getString('delegates.delegateNotInstalled.verifyField3')}</Text>
<CopyToClipboard content={getString('delegates.delegateNotInstalled.verifyField3')} />
</Container>
</Layout.Vertical>
<Layout.Horizontal width={511} style={{ padding: 'var(--spacing-small) 0px' }}>
<Text lineClamp={2} font="normal" color={Color.GREY_700} style={{ lineHeight: '24px' }}>
{getString('delegates.delegateNotInstalled.tabs.commonProblems.checkEndPoint')}
</Text>
</Layout.Horizontal>
</Layout.Vertical>
</>
)
}
export default CommonProblems
|