Skip to content

Commit e9488ec

Browse files
Add useGateway option to selfManagement
Signed-off-by: Arnob kumar saha <arnob@appscode.com>
1 parent c15c574 commit e9488ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apis/config/v1alpha1/setupconfig_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ type SelfManagement struct {
111111
EnableFeatures []string `json:"enableFeatures"`
112112
// +optional
113113
DisableFeatures []string `json:"disableFeatures"`
114+
// +optional
115+
UseGateway bool `json:"useGateway"`
114116
}
115117

116118
type SelfManagementOptions struct {
@@ -124,6 +126,8 @@ type SelfManagementOptions struct {
124126
DisableFeatures []string `json:"disableFeatures"`
125127
// +optional
126128
KubeAPIServer string `json:"kubeAPIServer,omitempty"`
129+
// +optional
130+
UseGateway bool `json:"useGateway"`
127131
}
128132

129133
type EnableFeaturesOptions map[string]FeatureSetOptions
@@ -164,6 +168,7 @@ func (opt SelfManagementOptions) ToConfig() SelfManagement {
164168
EnableFeatures: sets.List(enableFeatures),
165169
DisableFeatures: sets.List(sets.New[string](opt.DisableFeatures...)),
166170
KubeAPIServer: opt.KubeAPIServer,
171+
UseGateway: opt.UseGateway,
167172
}
168173
}
169174

0 commit comments

Comments
 (0)