Skip to content

Commit

Permalink
Fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet committed Mar 29, 2022
1 parent 13e52bc commit d731d0b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const CommandCode = styled.pre({
overflow: 'auto',
});

const K8S_COMMAND = `kubectl apply -f elastic-agent-managed-kubernetes.yaml`;

export const PlatformSelector: React.FunctionComponent<Props> = ({
linuxCommand,
macCommand,
Expand Down Expand Up @@ -74,9 +76,10 @@ export const PlatformSelector: React.FunctionComponent<Props> = ({
)}
</EuiText>
<EuiSpacer size="l" />

{isK8s ? (
<EuiCodeBlock fontSize="m" isCopyable={true} paddingSize="m">
<CommandCode>{linuxCommand}</CommandCode>
<CommandCode>{K8S_COMMAND}</CommandCode>
</EuiCodeBlock>
) : (
<>
Expand Down

0 comments on commit d731d0b

Please sign in to comment.