Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/install/installer/pkg/components/redis/objects.go
2501 views
1
// Copyright (c) 2023 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 Objects(ctx *common.RenderContext) ([]runtime.Object, error) {
13
return common.CompositeRenderFunc(
14
deployment,
15
service,
16
rolebinding,
17
common.DefaultServiceAccount(Component),
18
networkpolicy,
19
)(ctx)
20
}
21
22
type Configuration struct {
23
Address string `json:"address"`
24
}
25
26
func GetConfiguration(ctx *common.RenderContext) Configuration {
27
return Configuration{
28
Address: common.ClusterAddress(Component, ctx.Namespace, Port),
29
}
30
}
31
32