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.
e2e: update context to include cluster name
This change enables logging cluster names in the next step, improving debugging and log readability by clearly identifying the cluster in log messages for different operations. - Updated Cluster struct to include Name field. - Added `ClusterConfig` struct for cluster properties: name and kubeconfigpath. - Added default cluster names constants - Updated `NewContext` to ensure each cluster gets a default name if the `name` field is missing or empty in the config. - Updated comment in config.yaml.sample & added name property for all clusters. - Updated drenv/ramen.py to include cluster names along with kubeconfigpaths Generated drenv config: clusters: hub: name: hub kubeconfigpath: /home/pari/.config/drenv/rdr/kubeconfigs/hub c1: name: dr1 kubeconfigpath: /home/pari/.config/drenv/rdr/kubeconfigs/dr1 c2: name: dr2 kubeconfigpath: /home/pari/.config/drenv/rdr/kubeconfigs/dr2 Signed-off-by: Parikshith <[email protected]>
- Loading branch information
1 parent
19dd1b0
commit 65236e1
Showing
4 changed files
with
42 additions
and
9 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