From 820c5130eef1a17907b6d824d0a9d6b5b053e79a Mon Sep 17 00:00:00 2001 From: pPrecel Date: Tue, 24 Sep 2024 09:42:23 +0200 Subject: [PATCH] diable gateway and host fields when enabled is false --- config/operator/base/ui-extensions/dockerregistry/form | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/operator/base/ui-extensions/dockerregistry/form b/config/operator/base/ui-extensions/dockerregistry/form index 965c1b4..2a95dec 100644 --- a/config/operator/base/ui-extensions/dockerregistry/form +++ b/config/operator/base/ui-extensions/dockerregistry/form @@ -116,8 +116,13 @@ defaultExpanded: true children: - name: details.enabled + dynamicValue: "$exists(spec.externalAccess.gateway) or $exists(spec.externalAccess.host)" path: enabled - name: details.gateway path: gateway + overwrite: false + visibility: "$boolean(spec.externalAccess.enabled)" - name: details.host path: host + overwrite: false + visibility: "$boolean(spec.externalAccess.enabled)"