make tls crt and keys optional params to the create_tls_secret module

This commit is contained in:
viktorbarzin 2021-02-17 19:22:04 +00:00
parent 6ce627dd91
commit 40faa5dc0e
15 changed files with 14 additions and 83 deletions

View file

@ -1,6 +1,4 @@
variable "tls_secret_name" {}
variable "tls_crt" {}
variable "tls_key" {}
variable "host" {
default = "vault.viktorbarzin.me"
}
@ -15,8 +13,6 @@ module "tls_secret" {
source = "../setup_tls_secret"
namespace = "vault"
tls_secret_name = var.tls_secret_name
tls_crt = var.tls_crt
tls_key = var.tls_key
}
resource "kubernetes_persistent_volume" "vault_data" {