There was an error while loading. Please reload this page.
2 parents be67661 + ac4cc73 commit 268c241Copy full SHA for 268c241
1 file changed
templates/setup/cd.tf
@@ -18,8 +18,10 @@ data "plural_cluster" "mgmt" {
18
19
resource "plural_git_repository" "infra" {
20
url = local.context.spec.configuration.console.repo_url
21
- private_key = local.context.spec.configuration.console.private_key
22
- decrypt = true
+ private_key = try(local.context.spec.configuration.console.private_key, null)
+ 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
25
}
26
27
resource "plural_service_deployment" "apps" {
0 commit comments