Skip to content

Commit

Permalink
Merge pull request #14 from camptocamp/oidc-default-value
Browse files Browse the repository at this point in the history
OIDC default value
  • Loading branch information
Xaving authored Oct 14, 2022
2 parents b29c1c6 + 459d4a1 commit 8b6ee0d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bootstrap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ resource "htpasswd_password" "argocd_server_admin" {
}

data "utils_deep_merge_yaml" "values" {
input = [for i in concat(local.helm_values, [{"argo-cd" = tomap(var.helm_values.0)}]) : yamlencode(i)]
input = [for i in concat(local.helm_values, [{ "argo-cd" = tomap(var.helm_values.0) }]) : yamlencode(i)]
}

resource "null_resource" "this" {
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ output "argocd_domain" {
}

output "bootstrap_values" {
value = [yamldecode(data.utils_deep_merge_yaml.values.output)]
value = [yamldecode(data.utils_deep_merge_yaml.values.output)]
sensitive = true
}

Expand Down
4 changes: 2 additions & 2 deletions bootstrap/values.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ locals {
argocdServerAdminPassword = "${htpasswd_password.argocd_server_admin.bcrypt}"
argocdServerAdminPasswordMtime = "2020-07-23T11:31:23Z"
extra = {
"accounts.pipeline.tokens" = "${replace(local.argocd.accounts_pipeline_tokens, "\\\"", "\"")}"
"server.secretkey" = "${replace(local.argocd.server_secretkey, "\\\"", "\"")}"
"accounts.pipeline.tokens" = "${replace(local.argocd.accounts_pipeline_tokens, "\\\"", "\"")}"
"server.secretkey" = "${replace(local.argocd.server_secretkey, "\\\"", "\"")}"
}
}
})
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ variable "cluster_issuer" {
variable "oidc" {
description = "OIDC Settings"
type = any
default = null
}

variable "argocd" {
Expand Down

0 comments on commit 8b6ee0d

Please sign in to comment.