Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/install/installer/pkg/components/ws-manager-mk2/objects.go
2501 views
1
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License-AGPL.txt in the project root for license information.
4
5
package wsmanagermk2
6
7
import (
8
"github.com/gitpod-io/gitpod/installer/pkg/common"
9
"k8s.io/apimachinery/pkg/runtime"
10
)
11
12
var Objects common.RenderFunc = func(cfg *common.RenderContext) ([]runtime.Object, error) {
13
return common.CompositeRenderFunc(
14
namespace,
15
crd,
16
configmap,
17
deployment,
18
pdb,
19
networkpolicy,
20
role,
21
rolebinding,
22
common.DefaultServiceAccount(Component),
23
common.GenerateService(Component, []common.ServicePort{
24
{
25
Name: RPCPortName,
26
ContainerPort: RPCPort,
27
ServicePort: RPCPort,
28
},
29
}),
30
tlssecret,
31
unprivilegedRolebinding,
32
)(cfg)
33
}
34
35