Skip to content

Commit d464ef8

Browse files
authored
Cleanup installer (#18784)
* Cleanup installer * Remove MessageBus references
1 parent 7ac9c12 commit d464ef8

File tree

14 files changed

+0
-108
lines changed

14 files changed

+0
-108
lines changed

License.third-party.go.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ github.com/prometheus/procfs Apa
194194
github.com/prometheus/pushgateway Apache License 2.0
195195
github.com/PuerkitoBio/purell BSD 3-Clause "New" or "Revised" License
196196
github.com/PuerkitoBio/urlesc BSD 3-Clause "New" or "Revised" License
197-
github.com/rabbitmq/amqp091-go BSD 2-Clause "Simplified" License
198197
github.com/ramr/go-reaper MIT License
199198
github.com/redis/go-redis BSD 2-Clause "Simplified" License
200199
github.com/relvacode/iso8601 MIT License

install/installer/docs/overview.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ yq eval-all --inplace \
198198
- All Gitpod components
199199
- Container registry*
200200
- MySQL database*
201-
- RabbitMQ
202201
- Minio object storage*
203202
204203
\* By default, these dependencies are installed if the `inCluster` setting

install/installer/pkg/common/common.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919

2020
appsv1 "k8s.io/api/apps/v1"
2121
corev1 "k8s.io/api/core/v1"
22-
networkingv1 "k8s.io/api/networking/v1"
2322
"k8s.io/apimachinery/pkg/api/resource"
2423
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2524
"k8s.io/apimachinery/pkg/runtime"
@@ -597,25 +596,6 @@ var (
597596
tcpProtocol := corev1.ProtocolTCP
598597
return &tcpProtocol
599598
}()
600-
PrometheusIngressRule = networkingv1.NetworkPolicyIngressRule{
601-
Ports: []networkingv1.NetworkPolicyPort{
602-
{
603-
Protocol: TCPProtocol,
604-
Port: &intstr.IntOrString{IntVal: baseserver.BuiltinMetricsPort},
605-
},
606-
},
607-
From: []networkingv1.NetworkPolicyPeer{
608-
{
609-
// todo(sje): add these labels to the prometheus instance
610-
PodSelector: &metav1.LabelSelector{
611-
MatchLabels: map[string]string{
612-
"app": "prometheus",
613-
"component": "server",
614-
},
615-
},
616-
},
617-
},
618-
}
619599
)
620600

621601
var DeploymentStrategy = appsv1.DeploymentStrategy{

install/installer/pkg/common/constants.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const (
2020
DockerRegistryName = "registry"
2121
GitpodContainerRegistry = "eu.gcr.io/gitpod-core-dev/build"
2222
InClusterDbSecret = "mysql"
23-
InClusterMessageQueueName = "rabbitmq"
2423
KubeRBACProxyRepo = "quay.io"
2524
KubeRBACProxyImage = "brancz/kube-rbac-proxy"
2625
KubeRBACProxyTag = "v0.14.2"
@@ -45,7 +44,6 @@ const (
4544
SystemNodeCritical = "system-node-critical"
4645
PublicApiComponent = "public-api-server"
4746
UsageComponent = "usage"
48-
WSManagerComponent = "ws-manager"
4947
WSManagerMk2Component = "ws-manager-mk2"
5048
WSManagerBridgeComponent = "ws-manager-bridge"
5149
WSProxyComponent = "ws-proxy"

install/installer/pkg/common/networkpolicies.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -52,29 +52,3 @@ func AllowKubeDnsEgressRule() v1.NetworkPolicyEgressRule {
5252

5353
return dnsEgressRule
5454
}
55-
56-
func AllowWSManagerEgressRule() v1.NetworkPolicyEgressRule {
57-
var tcp = corev1.ProtocolTCP
58-
59-
dnsEgressRule := v1.NetworkPolicyEgressRule{
60-
Ports: []v1.NetworkPolicyPort{
61-
{
62-
Protocol: &tcp,
63-
Port: &intstr.IntOrString{
64-
IntVal: 8080,
65-
},
66-
},
67-
},
68-
To: []v1.NetworkPolicyPeer{{
69-
PodSelector: &metav1.LabelSelector{
70-
MatchLabels: map[string]string{
71-
"app": AppName,
72-
"component": WSManagerComponent,
73-
},
74-
},
75-
NamespaceSelector: &metav1.LabelSelector{},
76-
}},
77-
}
78-
79-
return dnsEgressRule
80-
}

install/installer/pkg/common/toleration.go

Lines changed: 0 additions & 19 deletions
This file was deleted.

install/installer/pkg/components/image-builder-mk3/networkpolicy.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ func networkpolicy(ctx *common.RenderContext) ([]runtime.Object, error) {
2828
},
2929
},
3030
},
31-
{
32-
PodSelector: &metav1.LabelSelector{
33-
MatchLabels: map[string]string{
34-
"component": common.WSManagerComponent,
35-
},
36-
},
37-
},
3831
{
3932
PodSelector: &metav1.LabelSelector{
4033
MatchLabels: map[string]string{

install/installer/pkg/components/image-builder-mk3/tlssecret.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"fmt"
99

1010
"github.com/gitpod-io/gitpod/installer/pkg/common"
11-
"github.com/gitpod-io/gitpod/installer/pkg/config/v1"
1211

1312
certmanagerv1 "github.com/jetstack/cert-manager/pkg/apis/certmanager/v1"
1413
cmmeta "github.com/jetstack/cert-manager/pkg/apis/meta/v1"
@@ -17,13 +16,6 @@ import (
1716
)
1817

1918
func tlssecret(ctx *common.RenderContext) ([]runtime.Object, error) {
20-
// Only enable TLS in workspace clusters. This check can be removed
21-
// once image-builder-mk3 has been removed from application clusters
22-
// (https://github.com/gitpod-io/gitpod/issues/7845).
23-
if ctx.Config.Kind != config.InstallationWorkspace {
24-
return nil, nil
25-
}
26-
2719
serverAltNames := []string{
2820
fmt.Sprintf("%s.%s.svc", Component, ctx.Namespace),
2921
fmt.Sprintf("%s.%s.svc.cluster.local", Component, ctx.Namespace),

install/installer/pkg/components/registry-facade/daemonset.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
303303
},
304304
common.CAVolume(),
305305
}, volumes...),
306-
Tolerations: common.GPUToleration(),
307306
},
308307
},
309308
UpdateStrategy: common.DaemonSetRolloutStrategy(),

install/installer/pkg/components/ws-daemon/daemonset.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,6 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
205205
},
206206
}
207207

208-
tolerations = append(tolerations, common.GPUToleration()...)
209-
210208
podSpec := corev1.PodSpec{
211209
Volumes: volumes,
212210
InitContainers: initContainers,

0 commit comments

Comments
 (0)