Path: blob/main/install/installer/pkg/components/spicedb/service.go
2506 views
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.1/// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34package spicedb56import (7"github.com/gitpod-io/gitpod/installer/pkg/common"8"k8s.io/apimachinery/pkg/runtime"9)1011func service(ctx *common.RenderContext) ([]runtime.Object, error) {12return common.GenerateService(Component, []common.ServicePort{13{14Name: ContainerGRPCName,15ContainerPort: ContainerGRPCPort,16ServicePort: ContainerGRPCPort,17},18{19Name: ContainerHTTPName,20ContainerPort: ContainerHTTPPort,21ServicePort: ContainerHTTPPort,22},23{24Name: ContainerDispatchName,25ContainerPort: ContainerDispatchPort,26ServicePort: ContainerDispatchPort,27},28})(ctx)29}303132