Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/install/installer/pkg/components/ws-manager-mk2/pdb.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 wsmanagermk2
6
7
import (
8
"github.com/gitpod-io/gitpod/installer/pkg/common"
9
10
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
11
"k8s.io/apimachinery/pkg/runtime"
12
)
13
14
func pdb(ctx *common.RenderContext) ([]runtime.Object, error) {
15
return []runtime.Object{
16
common.PodDisruptionBudget(ctx, Component, 1, &metav1.LabelSelector{
17
MatchLabels: common.DefaultLabels(Component),
18
}),
19
}, nil
20
}
21
22