Path: blob/main/install/installer/pkg/components/redis/objects.go
2501 views
// Copyright (c) 2023 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 redis56import (7"github.com/gitpod-io/gitpod/installer/pkg/common"8"k8s.io/apimachinery/pkg/runtime"9)1011func Objects(ctx *common.RenderContext) ([]runtime.Object, error) {12return common.CompositeRenderFunc(13deployment,14service,15rolebinding,16common.DefaultServiceAccount(Component),17networkpolicy,18)(ctx)19}2021type Configuration struct {22Address string `json:"address"`23}2425func GetConfiguration(ctx *common.RenderContext) Configuration {26return Configuration{27Address: common.ClusterAddress(Component, ctx.Namespace, Port),28}29}303132