Skip to content

Commit

Permalink
fix: mount ca cert also for letsencrypt-staging and parameterize secr…
Browse files Browse the repository at this point in the history
…et key (#49)

* fix: mount ca cert also for letsencrypt-staging and parameterize secret key

* docs(terraform-docs): generate docs and write to README.adoc

* docs(terraform-docs): generate docs and write to README.adoc

* feat: replace ssl_secret_key variable by condition

* docs(terraform-docs): generate docs and write to README.adoc

---------

Co-authored-by: hbollon <hbollon@users.noreply.github.com>
  • Loading branch information
hbollon and hbollon authored Jun 2, 2023
1 parent 4d2de99 commit 06a180d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ The following requirements are needed by this module:

The following providers are used by this module:

- [[provider_null]] <<provider_null,null>> (>= 3)

- [[provider_jwt]] <<provider_jwt,jwt>> (>= 1.1)

- [[provider_time]] <<provider_time,time>> (>= 0.9)
Expand All @@ -215,8 +217,6 @@ The following providers are used by this module:

- [[provider_argocd]] <<provider_argocd,argocd>> (>= 4.2)

- [[provider_null]] <<provider_null,null>> (>= 3)

=== Resources

The following resources are used by this module:
Expand Down Expand Up @@ -413,12 +413,12 @@ Description: Map of extra accounts and their tokens.
[cols="a,a",options="header,autowidth"]
|===
|Name |Version
|[[provider_null]] <<provider_null,null>> |>= 3
|[[provider_jwt]] <<provider_jwt,jwt>> |>= 1.1
|[[provider_time]] <<provider_time,time>> |>= 0.9
|[[provider_random]] <<provider_random,random>> |>= 3
|[[provider_utils]] <<provider_utils,utils>> |>= 1.6
|[[provider_argocd]] <<provider_argocd,argocd>> |>= 4.2
|[[provider_null]] <<provider_null,null>> |>= 3
|===
= Resources
Expand Down
6 changes: 3 additions & 3 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ locals {
enabled = true
}
},
var.cluster_issuer == "ca-issuer" ? {
var.cluster_issuer == "ca-issuer" || var.cluster_issuer == "letsencrypt-staging" ? {
volumeMounts = [
{
name = "certificate"
mountPath = "/etc/ssl/certs/ca.crt"
subPath = "ca.crt"
mountPath = format("/etc/ssl/certs/%s", var.cluster_issuer == "letsencrypt-staging" ? "tls.crt" : "ca.crt")
subPath = var.cluster_issuer == "letsencrypt-staging" ? "tls.crt" : "ca.crt"
},
]
volumes = [
Expand Down

0 comments on commit 06a180d

Please sign in to comment.