Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/install/installer/pkg/components/public-api-server/service.go
2501 views
1
// Copyright (c) 2022 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 public_api_server
6
7
import (
8
"github.com/gitpod-io/gitpod/installer/pkg/common"
9
"k8s.io/apimachinery/pkg/runtime"
10
)
11
12
func service(ctx *common.RenderContext) ([]runtime.Object, error) {
13
servicePorts := []common.ServicePort{
14
{
15
Name: GRPCPortName,
16
ContainerPort: GRPCContainerPort,
17
ServicePort: GRPCServicePort,
18
},
19
{
20
Name: HTTPPortName,
21
ContainerPort: HTTPContainerPort,
22
ServicePort: HTTPServicePort,
23
},
24
}
25
26
return common.GenerateService(Component, servicePorts)(ctx)
27
}
28
29