Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/ws-manager-mk2/pkg/maintenance/maintenance.go
2500 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 maintenance
6
7
import "context"
8
9
// Maintenance is used to check whether ws-manager-mk2 is in maintenance mode,
10
// which prevents pod creation/deletion and snapshots being taken, such that
11
// the cluster can be updated in-place.
12
type Maintenance interface {
13
IsEnabled(ctx context.Context) bool
14
}
15
16