Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/install/installer/pkg/components/registry-facade/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 registryfacade
6
7
import (
8
corev1 "k8s.io/api/core/v1"
9
10
"github.com/gitpod-io/gitpod/installer/pkg/common"
11
)
12
13
var Objects = common.CompositeRenderFunc(
14
clusterrole,
15
configmap,
16
daemonset,
17
networkpolicy,
18
rolebinding,
19
certificate,
20
common.GenerateService(Component, []common.ServicePort{
21
{
22
Name: ContainerPortName,
23
ContainerPort: ServicePort,
24
ServicePort: ServicePort,
25
},
26
}, func(svc *corev1.Service) {
27
svc.Spec.Type = corev1.ServiceTypeClusterIP
28
}),
29
common.DefaultServiceAccount(Component),
30
)
31
32