mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Webhook Config initial details page
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
c6b1306d9a
commit
831c1f1d1e
@ -0,0 +1,30 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||||
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import React from "react";
|
||||||
|
import { observer } from "mobx-react";
|
||||||
|
import { DrawerItem, DrawerTitle } from "../drawer";
|
||||||
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
||||||
|
import type { MutatingWebhookConfiguration } from "../../../common/k8s-api/endpoints";
|
||||||
|
|
||||||
|
export interface MutatingWebhookDetailsProps extends KubeObjectDetailsProps<MutatingWebhookConfiguration> {
|
||||||
|
}
|
||||||
|
|
||||||
|
@observer
|
||||||
|
export class MutatingWebhookDetails extends React.Component<MutatingWebhookDetailsProps> {
|
||||||
|
render() {
|
||||||
|
const { object: webhookConfig } = this.props;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="MutatingWebhookDetails">
|
||||||
|
<DrawerItem name="API version">
|
||||||
|
{webhookConfig.apiVersion}
|
||||||
|
</DrawerItem>
|
||||||
|
|
||||||
|
<DrawerTitle>Webhooks</DrawerTitle>
|
||||||
|
</div >
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user