@@ -46,44 +46,43 @@ var SupportedLightspeedArchitectures = []string{"amd64"}
4646//
4747// b.Host().Brand("").Config()
4848type ConsoleServerCLIConfigBuilder struct {
49- host string
50- logoutRedirectURL string
51- brand operatorv1.Brand
52- docURL string
53- apiServerURL string
54- controlPlaneToplogy configv1.TopologyMode
55- statusPageID string
56- customProductName string
57- devCatalogCustomization operatorv1.DeveloperConsoleCatalogCustomization
58- projectAccess operatorv1.ProjectAccess
59- quickStarts operatorv1.QuickStarts
60- addPage operatorv1.AddPage
61- perspectives []operatorv1.Perspective
62- CAFile string
63- monitoring map [string ]string
64- customHostnameRedirectPort int
65- inactivityTimeoutSeconds int
66- pluginsList map [string ]string
67- pluginsOrder []string
68- i18nNamespaceList []string
69- proxyServices []ProxyService
70- telemetry map [string ]string
71- releaseVersion string
72- nodeArchitectures []string
73- nodeOperatingSystems []string
74- copiedCSVsDisabled bool
75- oauthClientID string
76- oidcExtraScopes []string
77- oidcIssuerURL string
78- oidcOCLoginCommand string
79- authType string
80- sessionEncryptionFile string
81- sessionAuthenticationFile string
82- capabilities []operatorv1.Capability
83- contentSecurityPolicyEnabled bool
84- contentSecurityPolicyList map [v1.DirectiveType ][]string
85- logos []operatorv1.Logo
86- techPreviewEnabled bool
49+ host string
50+ logoutRedirectURL string
51+ brand operatorv1.Brand
52+ docURL string
53+ apiServerURL string
54+ controlPlaneToplogy configv1.TopologyMode
55+ statusPageID string
56+ customProductName string
57+ devCatalogCustomization operatorv1.DeveloperConsoleCatalogCustomization
58+ projectAccess operatorv1.ProjectAccess
59+ quickStarts operatorv1.QuickStarts
60+ addPage operatorv1.AddPage
61+ perspectives []operatorv1.Perspective
62+ CAFile string
63+ monitoring map [string ]string
64+ customHostnameRedirectPort int
65+ inactivityTimeoutSeconds int
66+ pluginsList map [string ]string
67+ pluginsOrder []string
68+ i18nNamespaceList []string
69+ proxyServices []ProxyService
70+ telemetry map [string ]string
71+ releaseVersion string
72+ nodeArchitectures []string
73+ nodeOperatingSystems []string
74+ copiedCSVsDisabled bool
75+ oauthClientID string
76+ oidcExtraScopes []string
77+ oidcIssuerURL string
78+ oidcOCLoginCommand string
79+ authType string
80+ sessionEncryptionFile string
81+ sessionAuthenticationFile string
82+ capabilities []operatorv1.Capability
83+ contentSecurityPolicyList map [v1.DirectiveType ][]string
84+ logos []operatorv1.Logo
85+ techPreviewEnabled bool
8786}
8887
8988func (b * ConsoleServerCLIConfigBuilder ) Host (host string ) * ConsoleServerCLIConfigBuilder {
@@ -272,11 +271,6 @@ func (b *ConsoleServerCLIConfigBuilder) ContentSecurityPolicies(cspList map[v1.D
272271 return b
273272}
274273
275- func (b * ConsoleServerCLIConfigBuilder ) ContentSecurityPolicyEnabled (enabled bool ) * ConsoleServerCLIConfigBuilder {
276- b .contentSecurityPolicyEnabled = enabled
277- return b
278- }
279-
280274func (b * ConsoleServerCLIConfigBuilder ) I18nNamespaces (i18nNamespaces []string ) * ConsoleServerCLIConfigBuilder {
281275 b .i18nNamespaceList = i18nNamespaces
282276 return b
@@ -319,22 +313,21 @@ func (b *ConsoleServerCLIConfigBuilder) TechPreviewEnabled(techPreviewEnabled bo
319313
320314func (b * ConsoleServerCLIConfigBuilder ) Config () Config {
321315 return Config {
322- Kind : "ConsoleConfig" ,
323- APIVersion : "console.openshift.io/v1" ,
324- Auth : b .auth (),
325- Session : b .session (),
326- ClusterInfo : b .clusterInfo (),
327- Customization : b .customization (),
328- ServingInfo : b .servingInfo (),
329- Providers : b .providers (),
330- MonitoringInfo : b .monitoringInfo (),
331- Plugins : b .plugins (),
332- PluginsOrder : b .getPluginsOrder (),
333- I18nNamespaces : b .i18nNamespaces (),
334- Proxy : b .proxy (),
335- ContentSecurityPolicy : b .contentSecurityPolicy (),
336- ContentSecurityPolicyEnabled : b .getContentSecurityPolicyEnabled (),
337- Telemetry : b .telemetry ,
316+ Kind : "ConsoleConfig" ,
317+ APIVersion : "console.openshift.io/v1" ,
318+ Auth : b .auth (),
319+ Session : b .session (),
320+ ClusterInfo : b .clusterInfo (),
321+ Customization : b .customization (),
322+ ServingInfo : b .servingInfo (),
323+ Providers : b .providers (),
324+ MonitoringInfo : b .monitoringInfo (),
325+ Plugins : b .plugins (),
326+ PluginsOrder : b .getPluginsOrder (),
327+ I18nNamespaces : b .i18nNamespaces (),
328+ Proxy : b .proxy (),
329+ ContentSecurityPolicy : b .contentSecurityPolicy (),
330+ Telemetry : b .telemetry ,
338331 }
339332}
340333
@@ -618,10 +611,6 @@ func (b *ConsoleServerCLIConfigBuilder) contentSecurityPolicy() map[v1.Directive
618611 return b .contentSecurityPolicyList
619612}
620613
621- func (b * ConsoleServerCLIConfigBuilder ) getContentSecurityPolicyEnabled () bool {
622- return b .contentSecurityPolicyEnabled
623- }
624-
625614func (b * ConsoleServerCLIConfigBuilder ) proxy () Proxy {
626615 return Proxy {
627616 Services : b .proxyServices ,
0 commit comments