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 5package maintenance 6 7import "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. 12type Maintenance interface { 13 IsEnabled(ctx context.Context) bool 14} 15 16