Skip to content

Commit 268c241

Browse files
authored
Merge pull request #129 from pluralsh/allow-http-urls
allow http urls
2 parents be67661 + ac4cc73 commit 268c241

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

templates/setup/cd.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ data "plural_cluster" "mgmt" {
1818

1919
resource "plural_git_repository" "infra" {
2020
url = local.context.spec.configuration.console.repo_url
21-
private_key = local.context.spec.configuration.console.private_key
22-
decrypt = true
21+
private_key = try(local.context.spec.configuration.console.private_key, null)
22+
username = try(local.context.spec.configuration.console.git_username, null)
23+
password = try(local.context.spec.configuration.console.git_password, null)
24+
decrypt = try(local.context.spec.configuration.console.private_key, null) != null
2325
}
2426

2527
resource "plural_service_deployment" "apps" {

0 commit comments

Comments
 (0)