Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new ConcurrencyPolicy setting to the MedusaBackupSchedule #1204

Merged
merged 2 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG/CHANGELOG-1.13.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ Changelog for the K8ssandra Operator, new PRs should update the `unreleased` sec
When cutting a new release, update the `unreleased` heading to the tag being generated and date, like `## vX.Y.Z - YYYY-MM-DD` and create a new placeholder section for `unreleased` entries.

## unreleased

* [ENHANCEMENT] [#1203](https://github.com/k8ssandra/k8ssandra-operator/issues/1203) Add new setting ConcurrencyPolicy to MedusaBackupSchedules
8 changes: 8 additions & 0 deletions apis/medusa/v1alpha1/medusaschedule_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package v1alpha1

import (
batchv1 "k8s.io/api/batch/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

Expand All @@ -31,6 +32,13 @@ type MedusaBackupScheduleSpec struct {

// BackupSpec defines the MedusaBackup to be created for this job
BackupSpec MedusaBackupJobSpec `json:"backupSpec"`

// Specifics if this backup task can be run concurrently with other active backup tasks. Valid values are:
// - "Allow": allows multiple Tasks to run concurrently on Cassandra cluster
// - "Forbid" (default): only a single task is executed at once
// The "Allow" property is only valid if all the other active Tasks have "Allow" as well.
// +optional
ConcurrencyPolicy batchv1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"`
}

// MedusaBackupScheduleStatus defines the observed state of MedusaBackupSchedule
Expand Down
Loading
Loading