Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/install/installer/pkg/components/dashboard/objects.go
2501 views
1
// Copyright (c) 2021 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 dashboard
6
7
import (
8
"github.com/gitpod-io/gitpod/installer/pkg/common"
9
"k8s.io/apimachinery/pkg/runtime"
10
)
11
12
var Objects = common.CompositeRenderFunc(
13
deployment,
14
networkpolicy,
15
rolebinding,
16
pdb,
17
func(ctx *common.RenderContext) ([]runtime.Object, error) {
18
return Role(ctx)
19
},
20
common.GenerateService(Component, []common.ServicePort{
21
{
22
Name: PortName,
23
ContainerPort: ContainerPort,
24
ServicePort: ServicePort,
25
},
26
}),
27
common.DefaultServiceAccount(ComponentServiceAccount),
28
)
29
30