From dadc4d7ce00821b2327770eda416dd235e7d1f2d Mon Sep 17 00:00:00 2001 From: Filip Strozik Date: Wed, 25 Sep 2024 10:32:06 +0200 Subject: [PATCH] diable gateway and host fields when enabled is false (#204) --- 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)"