fix
This commit is contained in:
@@ -6,7 +6,7 @@ metadata:
|
||||
name: k8s-api
|
||||
description: Access to the kubernetes api
|
||||
options:
|
||||
ingress-class:
|
||||
ingress_class:
|
||||
default: traefik
|
||||
examples:
|
||||
- traefik
|
||||
@@ -21,12 +21,12 @@ options:
|
||||
examples:
|
||||
- letsencrypt-prod
|
||||
type: string
|
||||
domain-name:
|
||||
domain_name:
|
||||
default: your_company.com
|
||||
examples:
|
||||
- your_company.com
|
||||
type: string
|
||||
sub-domain:
|
||||
sub_domain:
|
||||
default: api
|
||||
examples:
|
||||
- api
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
locals {
|
||||
dns-names = ["${var.sub-domain}.${var.domain-name}"]
|
||||
dns_names = ["${var.sub_domain}.${var.domain_name}"]
|
||||
middlewares = []
|
||||
services = [{
|
||||
"kind" = "Service"
|
||||
@@ -7,7 +7,7 @@ locals {
|
||||
"namespace" = "default"
|
||||
"port" = 443
|
||||
}]
|
||||
routes = [ for v in local.dns-names : {
|
||||
routes = [ for v in local.dns_names : {
|
||||
"kind" = "Rule"
|
||||
"match" = "Host(`${v}`)"
|
||||
"middlewares" = local.middlewares
|
||||
@@ -25,7 +25,7 @@ resource "kubectl_manifest" "prj_certificate" {
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
secretName: "${var.instance}-cert"
|
||||
dnsNames: ${jsonencode(local.dns-names)}
|
||||
dnsNames: ${jsonencode(local.dns_names)}
|
||||
issuerRef:
|
||||
name: "${var.issuer}"
|
||||
kind: "ClusterIssuer"
|
||||
|
||||
Reference in New Issue
Block a user