Customize the tolerations of maintenance job. (#10553)
Run the E2E test on kind / setup-test-matrix (push) Failing after 3s
Scorecard supply-chain security / Scorecard analysis (push) Skipped
e2e-test-kind.yaml / extract (push) Failing after 8s
Run the E2E test on kind / get-go-version (push) Failing after 9s
Run the E2E test on kind / build (push) Skipped
Run the E2E test on kind / run-e2e-test (push) Skipped
push.yml / extract (push) Failing after 6s
Main CI / get-go-version (push) Failing after 7s
Main CI / Build (push) Skipped

Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>
This commit is contained in:
Xun Jiang/Bruce Jiang
2026-09-23 13:28:06 +08:00
committed by GitHub
parent 2b1f1dba73
commit 00788053ae
6 changed files with 441 additions and 36 deletions
+11 -1
View File
@@ -16,7 +16,11 @@ limitations under the License.
package types
import "github.com/vmware-tanzu/velero/pkg/util/kube"
import (
corev1api "k8s.io/api/core/v1"
"github.com/vmware-tanzu/velero/pkg/util/kube"
)
type JobConfigs struct {
// LoadAffinities is the config for repository maintenance job load affinity.
@@ -39,4 +43,10 @@ type JobConfigs struct {
// PodLabels are labels to be added to maintenance job pods.
// Note: This is only read from the global configuration, not per-repository
PodLabels map[string]string `json:"podLabels,omitempty"`
// Tolerations are tolerations to be added to repository maintenance job pods.
// Note: This is only read from the global configuration, not per-repository
// These are merged with (and deduplicated against) any Velero deployment tolerations
// whose key is in the in-tree third-party toleration allowlist, and the default Windows toleration.
Tolerations []corev1api.Toleration `json:"tolerations,omitempty"`
}