-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add info about ingress allow list and which port is public (#1100)
* add info about ingress allow list and which port is public * fix lint errors
- Loading branch information
1 parent
86659ab
commit 43cfab6
Showing
7 changed files
with
77 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { List, Typography } from '@equinor/eds-core-react'; | ||
import * as PropTypes from 'prop-types'; | ||
import type { FunctionComponent } from 'react'; | ||
|
||
export const IngressAllowList: FunctionComponent<{ | ||
allowedIpRanges?: Array<string>; | ||
}> = ({ allowedIpRanges }) => | ||
allowedIpRanges?.length > 0 ? ( | ||
<div> | ||
<Typography>Accessible from public IP address ranges:</Typography> | ||
<List className="o-indent-list"> | ||
{allowedIpRanges.map((ip) => ( | ||
<List.Item key={ip}>{ip}</List.Item> | ||
))} | ||
</List> | ||
</div> | ||
) : ( | ||
<Typography>Accessible from all public IP addresses</Typography> | ||
); | ||
|
||
IngressAllowList.propTypes = { | ||
allowedIpRanges: PropTypes.arrayOf(PropTypes.string), | ||
}; |
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
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
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