Path: blob/main/install/installer/pkg/components/ws-proxy/objects.go
2501 views
// Copyright (c) 2021 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 wsproxy56import (7"github.com/gitpod-io/gitpod/common-go/baseserver"8"github.com/gitpod-io/gitpod/installer/pkg/common"9"k8s.io/apimachinery/pkg/runtime"10)1112var Objects = common.CompositeRenderFunc(13configmap,14deployment,15networkpolicy,16rolebinding,17role,18pdb,19func(cfg *common.RenderContext) ([]runtime.Object, error) {20ports := []common.ServicePort{21{22Name: HTTPProxyPortName,23ContainerPort: HTTPProxyTargetPort,24ServicePort: HTTPProxyPort,25},26{27Name: HTTPSProxyPortName,28ContainerPort: HTTPSProxyTargetPort,29ServicePort: HTTPSProxyPort,30},31{32Name: baseserver.BuiltinMetricsPortName,33ContainerPort: baseserver.BuiltinMetricsPort,34ServicePort: baseserver.BuiltinMetricsPort,35},36{37Name: SSHPortName,38ContainerPort: SSHTargetPort,39ServicePort: SSHServicePort,40},41}42return common.GenerateService(Component, ports)(cfg)43},44common.DefaultServiceAccount(Component),45)464748