From 7e33486505598f1a40adcf4ee147c3ca7ca8c8e4 Mon Sep 17 00:00:00 2001 From: Arnob kumar saha Date: Wed, 17 Dec 2025 18:29:06 +0600 Subject: [PATCH] Add useGateway option to selfManagement Signed-off-by: Arnob kumar saha --- apis/config/v1alpha1/setupconfig_types.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apis/config/v1alpha1/setupconfig_types.go b/apis/config/v1alpha1/setupconfig_types.go index 5b75f3c9..55aa51ce 100644 --- a/apis/config/v1alpha1/setupconfig_types.go +++ b/apis/config/v1alpha1/setupconfig_types.go @@ -111,6 +111,8 @@ type SelfManagement struct { EnableFeatures []string `json:"enableFeatures"` // +optional DisableFeatures []string `json:"disableFeatures"` + // +optional + UseGateway bool `json:"useGateway"` } type SelfManagementOptions struct { @@ -124,6 +126,8 @@ type SelfManagementOptions struct { DisableFeatures []string `json:"disableFeatures"` // +optional KubeAPIServer string `json:"kubeAPIServer,omitempty"` + // +optional + UseGateway bool `json:"useGateway"` } type EnableFeaturesOptions map[string]FeatureSetOptions @@ -164,6 +168,7 @@ func (opt SelfManagementOptions) ToConfig() SelfManagement { EnableFeatures: sets.List(enableFeatures), DisableFeatures: sets.List(sets.New[string](opt.DisableFeatures...)), KubeAPIServer: opt.KubeAPIServer, + UseGateway: opt.UseGateway, } }