From 2f55b4532915de4fdb3a3e1bcaa730e70b58d716 Mon Sep 17 00:00:00 2001 From: Roman Zavodskikh Date: Wed, 6 Nov 2024 17:37:52 +0100 Subject: [PATCH] Add config item to require FabricGateway versioning The versioned FabricGateway is tested enough to be sure it is safe to use for newly created FabricGateway's with external service provider. So this config item is introduced to eventually require such FabricGateway versioning on all clusters. Signed-off-by: Roman Zavodskikh --- cluster/config-defaults.yaml | 1 + cluster/manifests/fabric-gateway/fabricgateway_crd.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cluster/config-defaults.yaml b/cluster/config-defaults.yaml index c14797507b..28c6e6022c 100644 --- a/cluster/config-defaults.yaml +++ b/cluster/config-defaults.yaml @@ -366,6 +366,7 @@ fabric_gateway_controller_memory: "150Mi" fabric_gateway_controller_allow_all_filters: "false" fabric_gateway_controller_snapshots_history_limit: "3" fabric_gateway_controller_enable_versioning: "true" +fabric_gateway_controller_require_versioning: "false" fabric_gateway_controller_ssl_policy: "" fabric_gateway_controller_log_level: "INFO" diff --git a/cluster/manifests/fabric-gateway/fabricgateway_crd.yaml b/cluster/manifests/fabric-gateway/fabricgateway_crd.yaml index c2e165f0a5..cbb90c2185 100644 --- a/cluster/manifests/fabric-gateway/fabricgateway_crd.yaml +++ b/cluster/manifests/fabric-gateway/fabricgateway_crd.yaml @@ -464,6 +464,9 @@ spec: required: - hosts - stackSetName + {{ if eq .Cluster.ConfigItems.fabric_gateway_controller_require_versioning "true" }} + - stackVersion + {{ end }} type: object x-fabric-admins: description: |-