Skip to content

Commit

Permalink
fix metadata sidecar usage
Browse files Browse the repository at this point in the history
  • Loading branch information
floreks committed Mar 29, 2024
1 parent 03ae732 commit 488fe1c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/src/components/kubernetes/access/ClusterRole.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function ClusterRole(): ReactElement {
return (
<ResourceDetails
tabs={directory}
sidecar={<MetadataSidecar objectMeta={cr?.objectMeta} />}
sidecar={<MetadataSidecar resource={cr} />}
>
<Outlet context={cr} />
</ResourceDetails>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function ClusterRoleBinding(): ReactElement {
<ResourceDetails
tabs={directory}
sidecar={
<MetadataSidecar objectMeta={crb?.objectMeta}>
<MetadataSidecar resource={crb}>
<SidecarItem heading="Role">
<A
as={Link}
Expand Down
2 changes: 1 addition & 1 deletion assets/src/components/kubernetes/access/Role.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function Role(): ReactElement {
return (
<ResourceDetails
tabs={directory}
sidecar={<MetadataSidecar objectMeta={role?.objectMeta} />}
sidecar={<MetadataSidecar resource={role} />}
>
<Outlet context={role} />
</ResourceDetails>
Expand Down
2 changes: 1 addition & 1 deletion assets/src/components/kubernetes/access/RoleBinding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function RoleBinding(): ReactElement {
<ResourceDetails
tabs={directory}
sidecar={
<MetadataSidecar objectMeta={rb?.objectMeta}>
<MetadataSidecar resource={rb}>
<SidecarItem heading="Role">
<A
as={Link}
Expand Down

0 comments on commit 488fe1c

Please sign in to comment.