Skip to content

Commit 9584699

Browse files
change: [DPS-36768] - Display info how to enable log generation per cluster (#13473)
1 parent 0042755 commit 9584699

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Added
3+
---
4+
5+
Stream Create/Edit form: Show instructions in the Clusters section on how to enable Kubernetes API Audit log generation per cluster ([#13473](https://github.com/linode/manager/pull/13473))

packages/manager/src/features/Delivery/Streams/StreamForm/Clusters/StreamFormClusters.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ import useMediaQuery from '@mui/material/useMediaQuery';
1717
import { useFlags } from 'launchdarkly-react-client-sdk';
1818
import { enqueueSnackbar } from 'notistack';
1919
import React, { useEffect, useMemo, useState } from 'react';
20-
import { useWatch } from 'react-hook-form';
21-
import { Controller, useFormContext } from 'react-hook-form';
20+
import { Controller, useFormContext, useWatch } from 'react-hook-form';
2221

2322
import { DebouncedSearchTextField } from 'src/components/DebouncedSearchTextField';
23+
import { Link } from 'src/components/Link';
2424
import { sortData } from 'src/components/OrderBy';
2525
import { PaginationFooter } from 'src/components/PaginationFooter/PaginationFooter';
2626
import { MIN_PAGE_SIZE } from 'src/components/PaginationFooter/PaginationFooter.constants';
@@ -262,6 +262,19 @@ export const StreamFormClusters = (props: StreamFormClustersProps) => {
262262
)}
263263
/>
264264
</div>
265+
<Typography sx={{ mt: 2 }}>
266+
Select the LKE clusters that will send audit logs to the configured
267+
destination. Logging must be enabled for a cluster before it can be
268+
selected. To enable logging for a cluster, use the Linode API{' '}
269+
<Link
270+
external
271+
hideIcon
272+
to="https://techdocs.akamai.com/linode-api/reference/put-lke-cluster"
273+
>
274+
update the cluster
275+
</Link>{' '}
276+
to set audit_logs_enabled to true.
277+
</Typography>
265278
<StyledGrid
266279
sx={{
267280
alignItems: 'center',

0 commit comments

Comments
 (0)