Path: blob/main/install/installer/pkg/common/toleration.go
2500 views
// Copyright (c) 2025 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 common56import (7configv1 "github.com/gitpod-io/gitpod/installer/pkg/config/v1"8corev1 "k8s.io/api/core/v1"9)1011const (12RegistryFacadeTaintKey = "gitpod.io/registry-facade-not-ready"13WsDaemonTaintKey = "gitpod.io/ws-daemon-not-ready"14)1516func WithTolerationWorkspaceComponentNotReady(ctx *RenderContext) []corev1.Toleration {17if ctx.Config.Kind != configv1.InstallationFull {18return []corev1.Toleration{}19}20return []corev1.Toleration{21{22Key: RegistryFacadeTaintKey,23Operator: corev1.TolerationOpExists,24Effect: corev1.TaintEffectNoSchedule,25},26{27Key: WsDaemonTaintKey,28Operator: corev1.TolerationOpExists,29Effect: corev1.TaintEffectNoSchedule,30},31}32}333435