Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
omertuc committed Jan 25, 2024
1 parent 8cbaf0d commit 3a091d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ocp_postprocess/cluster_domain_rename/rename_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub(crate) fn fix_cluster_backup_sh(cluster_backup_sh: &str, original_hostname:
let cluster_backup = cluster_backup_sh.to_string();
let pattern = format!(r"NODE_{original_hostname}_IP");
let replacement = format!(r"NODE_{}_IP", env_var_safe(hostname));
Ok(cluster_backup.replace(&pattern, &replacement)
Ok(cluster_backup.replace(&pattern, &replacement))
}

pub(crate) async fn fix_kubeconfig(cluster_name: &str, cluster_domain: &str, kubeconfig: &mut Value) -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion src/ocp_postprocess/hostname_rename/filesystem_rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub(crate) async fn fix_filesystem_etcd_static_pods(original_hostname: &str, hos
}

pub(crate) async fn fix_filesystem_etcd_configmap_pod_yaml(original_hostname: &str, hostname: &str, dir: &Path) -> Result<()> {
join_all(file_utils::globvec(dir, "**/etcd-pod/pod.yaml")?.into_iter().map(|file_path| {
join_all(file_utils::globvec(dir, "**/*etcd-pod/pod.yaml")?.into_iter().map(|file_path| {
let etcd_pod_path = file_path.clone();
let original_hostname = original_hostname.to_string();
let hostname = hostname.to_string();
Expand Down

0 comments on commit 3a091d7

Please sign in to comment.