diff --git a/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configs-details.module.css b/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configs-details.module.css new file mode 100644 index 0000000000..f4090ece62 --- /dev/null +++ b/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configs-details.module.css @@ -0,0 +1,9 @@ +.matchLabels { + display: flex; + gap: 0.5rem; + flex-wrap: wrap; +} + +.lastItem + .firstItem { + margin-top: 1rem; +} diff --git a/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configurations-details.tsx b/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configurations-details.tsx index 2560515c5e..d40a00ad81 100644 --- a/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configurations-details.tsx +++ b/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configurations-details.tsx @@ -2,6 +2,7 @@ * Copyright (c) OpenLens Authors. All rights reserved. * Licensed under MIT License. See LICENSE in root directory for more information. */ +import styles from "./mutating-webhook-configs-details.module.css"; import React from "react"; import { observer } from "mobx-react"; @@ -29,7 +30,7 @@ export class MutatingWebhookDetails extends React.Component ( - + {webhook.name} @@ -92,7 +93,7 @@ export class MutatingWebhookDetails extends React.Component
Match Labels:
-
+
{Object.entries(webhook.namespaceSelector.matchLabels).map(([key, value], index) => ( ))} @@ -128,7 +129,7 @@ export class MutatingWebhookDetails extends React.Component
Match Labels:
-
+
{Object.entries(webhook.objectSelector.matchLabels).map(([key, value], index) => ( ))} @@ -138,7 +139,7 @@ export class MutatingWebhookDetails extends React.Component )} - + {webhook.rules?.map((rule, index) => (