-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
abstracts discover overview content determination
- Loading branch information
1 parent
2a757b1
commit 85903ae
Showing
3 changed files
with
48 additions
and
32 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
22 changes: 22 additions & 0 deletions
22
web/packages/teleport/src/Discover/Shared/Overview/content.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,22 @@ | ||
import { Overview } from 'teleport/Discover/Shared/Overview/types'; | ||
import { DiscoverGuideId } from 'teleport/services/userPreferences/discoverPreference'; | ||
|
||
export const content: { [key in DiscoverGuideId]?: Overview } = { | ||
[DiscoverGuideId.Kubernetes]: { | ||
OverviewContent: () => ( | ||
<ul> | ||
<li> | ||
This guide uses Helm to install the Teleport agent into a cluster, and | ||
by default turns on auto-discovery of all apps in the cluster. | ||
</li> | ||
</ul> | ||
), | ||
PrerequisiteContent: () => ( | ||
<ul> | ||
<li>Egress from your Kubernetes cluster to Teleport.</li> | ||
<li>Helm installed on your local machine.</li> | ||
<li>Kubernetes API access to install the Helm chart.</li> | ||
</ul> | ||
), | ||
}, | ||
}; |
11 changes: 11 additions & 0 deletions
11
web/packages/teleport/src/Discover/Shared/Overview/types.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,11 @@ | ||
import { ReactElement } from 'react'; | ||
|
||
export interface Prerequisite { | ||
content: string; | ||
details?: string[]; | ||
} | ||
|
||
export interface Overview { | ||
OverviewContent: () => ReactElement; | ||
PrerequisiteContent: () => ReactElement; | ||
} |