File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed
components/ws-manager-bridge Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 9
9
10
10
"github.com/gitpod-io/gitpod/installer/pkg/common"
11
11
wsmanager "github.com/gitpod-io/gitpod/installer/pkg/components/ws-manager"
12
- "github.com/gitpod-io/gitpod/installer/pkg/config/v1"
12
+ "github.com/gitpod-io/gitpod/installer/pkg/config/v1/experimental "
13
13
)
14
14
15
15
var Objects = common .CompositeRenderFunc (
@@ -20,9 +20,17 @@ var Objects = common.CompositeRenderFunc(
20
20
)
21
21
22
22
func WSManagerList (ctx * common.RenderContext ) []WorkspaceCluster {
23
+ skipSelf := false
24
+ _ = ctx .WithExperimental (func (cfg * experimental.Config ) error {
25
+ if cfg .WebApp != nil && cfg .WebApp .WorkspaceManagerBridge != nil {
26
+ skipSelf = cfg .WebApp .WorkspaceManagerBridge .SkipSelf
27
+ }
28
+ return nil
29
+ })
30
+
23
31
// Registering a local cluster ws-manager only makes sense when we actually deploy one,
24
32
// (ie when we are doing a full self hosted installation rather than a SaaS install to gitpod.io).
25
- if ctx . Config . Kind != config . InstallationFull {
33
+ if skipSelf {
26
34
return []WorkspaceCluster {}
27
35
}
28
36
Original file line number Diff line number Diff line change @@ -91,10 +91,11 @@ type WorkspaceTemplates struct {
91
91
}
92
92
93
93
type WebAppConfig struct {
94
- PublicAPI * PublicAPIConfig `json:"publicApi,omitempty"`
95
- Server * ServerConfig `json:"server,omitempty"`
96
- ProxyConfig * ProxyConfig `json:"proxy,omitempty"`
97
- UsePodAntiAffinity bool `json:"usePodAntiAffinity"`
94
+ PublicAPI * PublicAPIConfig `json:"publicApi,omitempty"`
95
+ Server * ServerConfig `json:"server,omitempty"`
96
+ ProxyConfig * ProxyConfig `json:"proxy,omitempty"`
97
+ WorkspaceManagerBridge * WsManagerBridgeConfig `json:"wsManagerBridge,omitempty"`
98
+ UsePodAntiAffinity bool `json:"usePodAntiAffinity"`
98
99
}
99
100
100
101
type WorkspaceDefaults struct {
@@ -121,6 +122,10 @@ type GithubApp struct {
121
122
CertSecretName string `json:"certSecretName"`
122
123
}
123
124
125
+ type WsManagerBridgeConfig struct {
126
+ SkipSelf bool `json:"skipSelf"`
127
+ }
128
+
124
129
type ServerConfig struct {
125
130
WorkspaceDefaults WorkspaceDefaults `json:"workspaceDefaults"`
126
131
OAuthServer OAuthServer `json:"oauthServer"`
You can’t perform that action at this time.
0 commit comments