Skip to content

Commit

Permalink
add Events
Browse files Browse the repository at this point in the history
  • Loading branch information
OliwiaGowor committed Aug 26, 2024
1 parent ff54785 commit 43e0d4e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/resources/Secrets/SecretDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { HelmReleaseData } from 'components/HelmReleases/HelmReleaseData';
import { CertificateData } from './CertificateData';
import SecretCreate from './SecretCreate';
import { ResourceDescription } from 'resources/Secrets';
import { EventsList } from 'shared/components/EventsList';
import { filterByResource } from 'hooks/useMessageList';

function HelmReleaseDataWrapper(secret) {
if (secret.type !== 'helm.sh/release.v1') {
Expand Down Expand Up @@ -43,9 +45,23 @@ export function SecretDetails(props) {
},
];

const Events = () => (
<EventsList
key="events"
namespace={props.namespace}
filter={filterByResource('Secret', props.resourceName)}
hideInvolvedObjects={true}
/>
);

return (
<ResourceDetails
customComponents={[Secret, CertificateData, HelmReleaseDataWrapper]}
customComponents={[
Secret,
CertificateData,
HelmReleaseDataWrapper,
Events,
]}
customColumns={customColumns}
description={ResourceDescription}
createResourceForm={SecretCreate}
Expand Down

0 comments on commit 43e0d4e

Please sign in to comment.