-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable DRPC Consistency Groups Using an Annotation
Both annotations and the DRPC spec allow us to enable consistency groups (CG) on a per-DRPC basis, providing more granular control compared to a global configuration. However, we chose to use annotations instead of modifying the DRPC spec to prepare for the future full use of CG. As CG usage matures, we will gradually phase out non-CG snapshotting and replication. Using an annotation also makes it easier to remove for backward compatibility. Signed-off-by: Benamar Mekhissi <bmekhiss@ibm.com>
- Loading branch information
1 parent
ba50c97
commit 210f00a
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-FileCopyrightText: The RamenDR authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package util_test | ||
|
||
import ( | ||
. "github.com/onsi/ginkgo/v2" | ||
. "github.com/onsi/gomega" | ||
"github.com/ramendr/ramen/internal/controller/util" | ||
) | ||
|
||
var _ = Describe("misc", func() { | ||
Expect(util.IsCGEnabled(nil)).Should(Equal(false)) | ||
Expect(util.IsCGEnabled(map[string]string{})).Should(Equal(false)) | ||
Expect(util.IsCGEnabled(map[string]string{util.IsCGEnabledAnnotation: "true"})).Should(Equal(true)) | ||
}) |