mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
* [public-api] add dummy service for testing * [public-api] proxy dummy to server * [public-api] hello service server impl * [server] fix API contribution bindings * [dashboard] emulate unary call * only if actually called * [dummy] auth * fix tests * [server] add interceptor to public api * add server side observability * fix port name * change to unimplemented for unknown methods * [public-api] client metrics * fix metrics imports * align server metrics * actually fix metrics * add feature flags * fix server side streams * [dashboard] hook error reporting * rebase and fix imports * feature flagged metrics from dashboard * revert GRPC_TYPE * address feedback
70 lines
1.8 KiB
Go
70 lines
1.8 KiB
Go
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
|
|
// Licensed under the GNU Affero General Public License (AGPL).
|
|
// See License.AGPL.txt in the project root for license information.
|
|
|
|
package server
|
|
|
|
import (
|
|
"github.com/gitpod-io/gitpod/common-go/baseserver"
|
|
"github.com/gitpod-io/gitpod/installer/pkg/common"
|
|
"k8s.io/apimachinery/pkg/runtime"
|
|
)
|
|
|
|
var Objects = common.CompositeRenderFunc(
|
|
configmap,
|
|
deployment,
|
|
func(ctx *common.RenderContext) ([]runtime.Object, error) {
|
|
return Networkpolicy(ctx, Component)
|
|
},
|
|
func(ctx *common.RenderContext) ([]runtime.Object, error) {
|
|
return Role(ctx, Component)
|
|
},
|
|
func(ctx *common.RenderContext) ([]runtime.Object, error) {
|
|
return Rolebinding(ctx, Component)
|
|
},
|
|
pdb,
|
|
common.GenerateService(Component, []common.ServicePort{
|
|
{
|
|
Name: ContainerPortName,
|
|
ContainerPort: ContainerPort,
|
|
ServicePort: ServicePort,
|
|
},
|
|
{
|
|
Name: baseserver.BuiltinMetricsPortName,
|
|
ContainerPort: baseserver.BuiltinMetricsPort,
|
|
ServicePort: baseserver.BuiltinMetricsPort,
|
|
},
|
|
{
|
|
Name: InstallationAdminName,
|
|
ContainerPort: InstallationAdminPort,
|
|
ServicePort: InstallationAdminPort,
|
|
},
|
|
{
|
|
Name: IAMSessionPortName,
|
|
ContainerPort: IAMSessionPort,
|
|
ServicePort: IAMSessionPort,
|
|
},
|
|
{
|
|
Name: DebugPortName,
|
|
ContainerPort: baseserver.BuiltinDebugPort,
|
|
ServicePort: baseserver.BuiltinDebugPort,
|
|
},
|
|
{
|
|
Name: DebugNodePortName,
|
|
ContainerPort: common.DebugNodePort,
|
|
ServicePort: common.DebugNodePort,
|
|
},
|
|
{
|
|
Name: GRPCAPIName,
|
|
ContainerPort: GRPCAPIPort,
|
|
ServicePort: GRPCAPIPort,
|
|
},
|
|
{
|
|
Name: PublicAPIName,
|
|
ContainerPort: PublicAPIPort,
|
|
ServicePort: PublicAPIPort,
|
|
},
|
|
}),
|
|
common.DefaultServiceAccount(Component),
|
|
)
|