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,10 +1,14 @@
variable "tls_secret_name" {}
variable "tls_crt" {}
variable "tls_key" {}
variable "wg_0_conf" {}
variable "firewall_sh" {}
variable "wg_0_key" {}
module "tls_secret" {
source = "../setup_tls_secret"
namespace = "wireguard"
tls_secret_name = var.tls_secret_name
}
resource "kubernetes_namespace" "wireguard" {
metadata {
name = "wireguard"