Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/install/installer/pkg/components/ide-metrics/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 ide_metrics
6
7
import (
8
"github.com/gitpod-io/gitpod/installer/pkg/common"
9
10
"k8s.io/apimachinery/pkg/runtime"
11
)
12
13
func service(ctx *common.RenderContext) ([]runtime.Object, error) {
14
ports := []common.ServicePort{
15
{
16
Name: PortName,
17
ContainerPort: ContainerPort,
18
ServicePort: ServicePort,
19
},
20
}
21
return common.GenerateService(Component, ports)(ctx)
22
}
23
24