Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/install/installer/pkg/components/docker-registry/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 dockerregistry
6
7
import (
8
"github.com/gitpod-io/gitpod/installer/pkg/common"
9
"k8s.io/apimachinery/pkg/runtime"
10
"k8s.io/utils/pointer"
11
)
12
13
var Objects = common.CompositeRenderFunc(
14
certificate,
15
rolebinding,
16
secret,
17
func(ctx *common.RenderContext) ([]runtime.Object, error) {
18
if !pointer.BoolDeref(ctx.Config.ContainerRegistry.InCluster, false) {
19
return nil, nil
20
}
21
22
return common.DefaultServiceAccount(Component)(ctx)
23
},
24
)
25
26