fix
This commit is contained in:
@@ -41,11 +41,11 @@ locals {
|
|||||||
],
|
],
|
||||||
lookup(z, "domain","")!=""?[format("%s. IN A %s", z.name, z.domain)]:[],
|
lookup(z, "domain","")!=""?[format("%s. IN A %s", z.name, z.domain)]:[],
|
||||||
lookup(z, "domain6","")!=""?[format("%s. IN AAAA %s", z.name, z.domain6)]:[],
|
lookup(z, "domain6","")!=""?[format("%s. IN AAAA %s", z.name, z.domain6)]:[],
|
||||||
[for k,v in lookup(z, "txt",[]): format("%s IN TXT %s", k, v)],
|
[for k,v in coalesce(lookup(z, "txt",[]),[]): format("%s IN TXT %s", k, v)],
|
||||||
[for k,v in lookup(z, "hosts",[]): format("%s IN A %s", k, v)],
|
[for k,v in coalesce(lookup(z, "hosts",[]),[]): format("%s IN A %s", k, v)],
|
||||||
[for k,v in lookup(z, "hosts6",[]): format("%s IN AAAA %s", k, v)],
|
[for k,v in coalesce(lookup(z, "hosts6",[]),[]): format("%s IN AAAA %s", k, v)],
|
||||||
[for k,v in lookup(z, "alias",[]): format("%s IN CNAME %s", k, v)],
|
[for k,v in coalesce(lookup(z, "alias",[]),[]): format("%s IN CNAME %s", k, v)],
|
||||||
[for mx in lookup(z, "mx",[]): format("%s IN MX %d %s", mx.name, mx.priority, mx.value)],
|
[for mx in coalesce(lookup(z, "mx",[]),[]): format("%s IN MX %d %s", mx.name, mx.priority, mx.value)],
|
||||||
lookup(z, "wildcard","")!=""?[format("*.%s. IN A %s", z.name, z.wildcard)]:[],
|
lookup(z, "wildcard","")!=""?[format("*.%s. IN A %s", z.name, z.wildcard)]:[],
|
||||||
lookup(z, "wildcard6","")!=""?[format("*.%s. IN AAAA %s", z.name, z.wildcard6)]:[],
|
lookup(z, "wildcard6","")!=""?[format("*.%s. IN AAAA %s", z.name, z.wildcard6)]:[],
|
||||||
))
|
))
|
||||||
|
|||||||
@@ -6,21 +6,21 @@ metadata:
|
|||||||
name: dns
|
name: dns
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
forward:
|
domain_name:
|
||||||
default: 192.168.1.254
|
default: your_company.com
|
||||||
examples:
|
examples:
|
||||||
- 192.168.1.254
|
- your_company.com
|
||||||
|
type: string
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
type: string
|
type: string
|
||||||
sub_domain:
|
sub_domain:
|
||||||
default: dns
|
default: dns
|
||||||
examples:
|
examples:
|
||||||
- dns
|
- dns
|
||||||
type: string
|
type: string
|
||||||
domain_name:
|
|
||||||
default: your_company.com
|
|
||||||
examples:
|
|
||||||
- your_company.com
|
|
||||||
type: string
|
|
||||||
image:
|
image:
|
||||||
default:
|
default:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
@@ -50,6 +50,11 @@ options:
|
|||||||
default: 1.11.1
|
default: 1.11.1
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
forward:
|
||||||
|
default: 192.168.1.254
|
||||||
|
examples:
|
||||||
|
- 192.168.1.254
|
||||||
|
type: string
|
||||||
zones:
|
zones:
|
||||||
default: []
|
default: []
|
||||||
items:
|
items:
|
||||||
@@ -98,11 +103,6 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
dependencies: []
|
dependencies: []
|
||||||
providers:
|
providers:
|
||||||
kubernetes: true
|
kubernetes: true
|
||||||
|
|||||||
Reference in New Issue
Block a user