Skip to content

Commit

Permalink
Merge pull request #1695 from egovernments/DIGIT-Bootcamp-update
Browse files Browse the repository at this point in the history
Corrected db name property in db module helm chart and fixed trimming…
  • Loading branch information
SriPadma8997-egov authored May 26, 2023
2 parents e6adb8e + 27691fd commit b65b7cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy-as-code/deployer/pkg/cmd/deployer/deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func deployClusterConfigs(index map[string]string, configDir string, envOverride
args = append(args, fmt.Sprintf("--output-dir %s", tmpDir))
fmt.Println("Before Trimming" + configDir)

sopsDir := strings.Trim(configDir, "helm")
sopsDir := strings.Trim(configDir, "/helm")
fmt.Println("path to sops file: " + sopsDir)
if _, err := os.Stat(sopsDir + "/.sops.yaml"); os.IsNotExist(err) {
fmt.Println("Sops file not found")
Expand Down
2 changes: 1 addition & 1 deletion infra-as-code/terraform/modules/db/aws/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ output "db_instance_endpoint" {

output "db_instance_name" {
description = "The database name"
value = "${aws_db_instance.rds_postgres.name}"
value = "${aws_db_instance.rds_postgres.db_name}"
}

output "db_instance_username" {
Expand Down

0 comments on commit b65b7cd

Please sign in to comment.