forked from RamenDR/ramen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ramenctl [un]config with --name-prefix
The cluster names were hard coded in the yamls, so configuring an environment using --name-prefix was deploying drclusters and drpolicy with the wrong cluster names. Fix by removing the kustomization which does not work well for for our use case. Instead the resources are now templates where we replace the cluster names placeholders with the real cluster names before applying the yaml directly. With this change we can create an environment with --name-prefix and then deploy and configure ramen with the same name prefix: (cd test && drenv start --name-prefix pr123- envs/regional-dr.yaml) ramenctl deploy --name-prefix pr123- envs/regional-dr.yaml ramenctl config --name-prefix pr123- envs/regional-dr.yaml Part-of: RamenDR#959 Signed-off-by: Nir Soffer <nsoffer@redhat.com>
- Loading branch information
Showing
6 changed files
with
43 additions
and
33 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 |
---|---|---|
|
@@ -7,6 +7,6 @@ metadata: | |
name: dr-policy | ||
spec: | ||
drClusters: | ||
- dr1 | ||
- dr2 | ||
- $cluster1 | ||
- $cluster2 | ||
schedulingInterval: 1m |
This file was deleted.
Oops, something went wrong.
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