Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/install/installer/pkg/components/redis/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 redis
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
return common.GenerateService(Component, []common.ServicePort{
14
{
15
Name: PortName,
16
ContainerPort: Port,
17
ServicePort: Port,
18
},
19
})(ctx)
20
}
21
22