Skip to content

Commit e87f03a

Browse files
authored
CHORE: fmt (#3882)
1 parent 00f1bd8 commit e87f03a

File tree

7 files changed

+47
-39
lines changed

7 files changed

+47
-39
lines changed

commands/types/dnscontrol.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,13 @@ declare function IGNORE(labelSpec: string, typeSpec?: string, targetSpec?: strin
17731773
*
17741774
* ## Caveats
17751775
*
1776+
* ### One per domain
1777+
*
1778+
* Only one `IGNORE_EXTERNAL_DNS()` should be used per domain. If you call it multiple
1779+
* times, the last prefix wins. If you have multiple external-dns instances with
1780+
* different prefixes managing the same zone, use `IGNORE()` patterns for additional
1781+
* prefixes.
1782+
*
17761783
* ### TXT Registry Format
17771784
*
17781785
* This feature relies on external-dns's [TXT registry](https://github.com/kubernetes-sigs/external-dns/blob/master/docs/registry/txt.md),

models/domain.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ type DomainConfig struct {
4040
Unmanaged []*UnmanagedConfig `json:"unmanaged,omitempty"` // IGNORE()
4141
UnmanagedUnsafe bool `json:"unmanaged_disable_safety_check,omitempty"` // DISABLE_IGNORE_SAFETY_CHECK
4242

43-
IgnoreExternalDNS bool `json:"ignore_external_dns,omitempty"` // IGNORE_EXTERNAL_DNS
44-
ExternalDNSPrefix string `json:"external_dns_prefix,omitempty"` // IGNORE_EXTERNAL_DNS prefix
43+
IgnoreExternalDNS bool `json:"ignore_external_dns,omitempty"` // IGNORE_EXTERNAL_DNS
44+
ExternalDNSPrefix string `json:"external_dns_prefix,omitempty"` // IGNORE_EXTERNAL_DNS prefix
4545

4646
AutoDNSSEC string `json:"auto_dnssec,omitempty"` // "", "on", "off"
4747
// DNSSEC bool `json:"dnssec,omitempty"`

package-lock.json

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
33
"@umbrelladocs/linkspector": "^0.3.13",
4-
"prettier": "^3.6.2"
4+
"prettier": "^3.7.4"
55
}
66
}

pkg/diff2/handsoff_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ func Test_ignore_external_dns(t *testing.T) {
266266
domain,
267267
existing,
268268
desired,
269-
nil, // absences
270-
nil, // unmanagedConfigs
269+
nil, // absences
270+
nil, // unmanagedConfigs
271271
false, // unmanagedSafely
272272
false, // noPurge
273273
true, // ignoreExternalDNS
@@ -352,11 +352,11 @@ func Test_ignore_external_dns_custom_prefix(t *testing.T) {
352352
domain,
353353
existing,
354354
desired,
355-
nil, // absences
356-
nil, // unmanagedConfigs
357-
false, // unmanagedSafely
358-
false, // noPurge
359-
true, // ignoreExternalDNS
355+
nil, // absences
356+
nil, // unmanagedConfigs
357+
false, // unmanagedSafely
358+
false, // noPurge
359+
true, // ignoreExternalDNS
360360
"extdns-", // externalDNSPrefix
361361
)
362362
if err != nil {

pkg/js/helpers.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -866,15 +866,15 @@ function locStringBuilder(record, args) {
866866
(args.alt < -100000
867867
? -100000
868868
: args.alt > 42849672.95
869-
? 42849672.95
870-
: args.alt.toString()) + 'm';
869+
? 42849672.95
870+
: args.alt.toString()) + 'm';
871871
precisionbuffer +=
872872
' ' +
873873
(args.siz > 90000000
874874
? 90000000
875875
: args.siz < 0
876-
? 0
877-
: args.siz.toString()) +
876+
? 0
877+
: args.siz.toString()) +
878878
'm';
879879
precisionbuffer +=
880880
' ' +
@@ -914,8 +914,8 @@ function locDMSBuilder(record, args) {
914914
record.localtitude > 4294967295
915915
? 4294967295
916916
: record.localtitude < 0
917-
? 0
918-
: record.localtitude;
917+
? 0
918+
: record.localtitude;
919919
// Size
920920
record.locsize = getENotationInt(args.siz);
921921
// Horizontal Precision
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
{
2-
"registrars": [],
32
"dns_providers": [],
43
"domains": [
54
{
6-
"name": "extdns-default.com",
7-
"registrar": "none",
85
"dnsProviders": {},
6+
"ignore_external_dns": true,
97
"meta": {
108
"dnscontrol_uniquename": "extdns-default.com"
119
},
10+
"name": "extdns-default.com",
1211
"records": [],
13-
"ignore_external_dns": true
12+
"registrar": "none"
1413
},
1514
{
16-
"name": "extdns-custom.com",
17-
"registrar": "none",
1815
"dnsProviders": {},
16+
"external_dns_prefix": "extdns-",
17+
"ignore_external_dns": true,
1918
"meta": {
2019
"dnscontrol_uniquename": "extdns-custom.com"
2120
},
21+
"name": "extdns-custom.com",
2222
"records": [],
23-
"ignore_external_dns": true,
24-
"external_dns_prefix": "extdns-"
23+
"registrar": "none"
2524
},
2625
{
27-
"name": "extdns-combined.com",
28-
"registrar": "none",
2926
"dnsProviders": {},
27+
"ignore_external_dns": true,
3028
"meta": {
3129
"dnscontrol_uniquename": "extdns-combined.com"
3230
},
31+
"name": "extdns-combined.com",
3332
"records": [
3433
{
35-
"type": "CNAME",
34+
"filepos": "[line:12:5]",
3635
"name": "api",
36+
"target": "www.extdns-combined.com.",
3737
"ttl": 300,
38-
"filepos": "[line:12:5]",
39-
"target": "www.extdns-combined.com."
38+
"type": "CNAME"
4039
},
4140
{
42-
"type": "A",
41+
"filepos": "[line:11:5]",
4342
"name": "www",
43+
"target": "1.2.3.4",
4444
"ttl": 300,
45-
"filepos": "[line:11:5]",
46-
"target": "1.2.3.4"
45+
"type": "A"
4746
}
4847
],
49-
"ignore_external_dns": true
48+
"registrar": "none"
5049
}
51-
]
50+
],
51+
"registrars": []
5252
}

0 commit comments

Comments
 (0)