fix
This commit is contained in:
@@ -23,7 +23,7 @@ locals {
|
|||||||
@ IN NS ${var.sub-domain}.${var.domain-name}.
|
@ IN NS ${var.sub-domain}.${var.domain-name}.
|
||||||
EOF
|
EOF
|
||||||
files = merge({
|
files = merge({
|
||||||
"Corefile" = join("", concat([local.begin-core],[for z in var.zones: format("file /etc/coredns/%s.db %s", z.name,z.name)],[local.end-core]))
|
"Corefile" = join("\n", concat([local.begin-core],[for z in var.zones: format("file /etc/coredns/%s.db %s", z.name,z.name)],[local.end-core]))
|
||||||
},[for z in var.zones: {
|
},[for z in var.zones: {
|
||||||
"${z.name}" = join("\n", concat([
|
"${z.name}" = join("\n", concat([
|
||||||
"$TTL 60",
|
"$TTL 60",
|
||||||
|
|||||||
@@ -6,6 +6,11 @@ metadata:
|
|||||||
name: dns
|
name: dns
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
|
type: string
|
||||||
image:
|
image:
|
||||||
default:
|
default:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
@@ -35,16 +40,6 @@ options:
|
|||||||
default: 1.10.1
|
default: 1.10.1
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
sub-domain:
|
|
||||||
default: dns
|
|
||||||
examples:
|
|
||||||
- dns
|
|
||||||
type: string
|
|
||||||
zones:
|
zones:
|
||||||
default: []
|
default: []
|
||||||
items:
|
items:
|
||||||
@@ -74,6 +69,11 @@ options:
|
|||||||
examples:
|
examples:
|
||||||
- your_company.com
|
- your_company.com
|
||||||
type: string
|
type: string
|
||||||
|
sub-domain:
|
||||||
|
default: dns
|
||||||
|
examples:
|
||||||
|
- dns
|
||||||
|
type: string
|
||||||
dependencies: []
|
dependencies: []
|
||||||
providers:
|
providers:
|
||||||
kubernetes: true
|
kubernetes: true
|
||||||
|
|||||||
Reference in New Issue
Block a user