From eb4713e7948eb5100fac12ecf215f94fa9c32646 Mon Sep 17 00:00:00 2001 From: nikhilmulinti Date: Mon, 23 Dec 2024 14:37:23 +0530 Subject: [PATCH] updating paths --- infra-as-code/terraform/scripts/envYAMLUpdater.go | 4 ++-- infra-as-code/terraform/scripts/init.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infra-as-code/terraform/scripts/envYAMLUpdater.go b/infra-as-code/terraform/scripts/envYAMLUpdater.go index 92103a742..f9ba6bdd6 100644 --- a/infra-as-code/terraform/scripts/envYAMLUpdater.go +++ b/infra-as-code/terraform/scripts/envYAMLUpdater.go @@ -44,7 +44,7 @@ func main() { os.Exit(1) } // Read the YAML file - yamlFile, err := ioutil.ReadFile("../../../config-as-code/environments/egov-demo.yaml") + yamlFile, err := ioutil.ReadFile("../../../deploy-as-code/helm/environments/egov-demo.yaml") if err != nil { fmt.Fprintf(os.Stderr, "Error reading YAML file: %v\n", err) os.Exit(1) @@ -63,7 +63,7 @@ func main() { // Write the updated YAML to stdout fmt.Println(output) - err = ioutil.WriteFile("../../../config-as-code/environments/egov-demo.yaml", []byte(output), 0644) + err = ioutil.WriteFile("../../../deploy-as-code/helm/environments/egov-demo.yaml", []byte(output), 0644) if err != nil { fmt.Fprintf(os.Stderr, "Error writing YAML file: %v\n", err) os.Exit(1) diff --git a/infra-as-code/terraform/scripts/init.go b/infra-as-code/terraform/scripts/init.go index 85abd9614..aaa9df05e 100644 --- a/infra-as-code/terraform/scripts/init.go +++ b/infra-as-code/terraform/scripts/init.go @@ -33,10 +33,10 @@ func main() { replaceInFile("../sample-aws/main.tf", data, false) fmt.Println("main.tf file updated successfully!") - replaceInFile("../../../config-as-code/environments/egov-demo.yaml", data, true) + replaceInFile("../../../deploy-as-code/helm/environments/egov-demo.yaml", data, true) fmt.Println("env yaml file updated successfully!") - replaceInFile("../../../config-as-code/environments/egov-demo-secrets.yaml", data, true) + replaceInFile("../../../deploy-as-code/helm/environments/egov-demo-secrets.yaml", data, true) fmt.Println("env secrets yaml file updated successfully!") }