From 6b0d792a19bc0934a83cd9367a344e7c9aabdc64 Mon Sep 17 00:00:00 2001 From: Mathew Kamkar <578302+matkam@users.noreply.github.com> Date: Thu, 26 Oct 2023 18:31:38 -0700 Subject: [PATCH] update test and docs --- docs/tutorials/nodes.md | 4 ++-- source/node_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorials/nodes.md b/docs/tutorials/nodes.md index 802bf94f73..1be7e33b2f 100644 --- a/docs/tutorials/nodes.md +++ b/docs/tutorials/nodes.md @@ -38,7 +38,7 @@ spec: - --domain-filter=external-dns-test.my-org.com - --aws-zone-type=public - --registry=txt - - --fqdn-template={{replaceAll .Name "." "-"}}.external-dns-test.my-org.com + - --fqdn-template={{.Name | replace "." "-"}}.external-dns-test.my-org.com - --txt-owner-id=my-identifier - --policy=sync - --log-level=debug @@ -109,7 +109,7 @@ spec: - --domain-filter=external-dns-test.my-org.com - --aws-zone-type=public - --registry=txt - - --fqdn-template={{replaceAll .Name "." "-"}}.external-dns-test.my-org.com + - --fqdn-template={{.Name | replace "." "-"}}.external-dns-test.my-org.com - --txt-owner-id=my-identifier - --policy=sync - --log-level=debug diff --git a/source/node_test.go b/source/node_test.go index b8a0d57e46..799b579fa1 100644 --- a/source/node_test.go +++ b/source/node_test.go @@ -64,7 +64,7 @@ func testNodeSourceNewNodeSource(t *testing.T) { { title: "complex template", expectError: false, - fqdnTemplate: "{{range .Status.Addresses}}{{if and (eq .Type \"ExternalIP\") (isIPv4 .Address)}}{{replaceAll .Address \".\" \"-\"}}{{break}}{{end}}{{end}}.ext-dns.test.com", + fqdnTemplate: "{{range .Status.Addresses}}{{if and (eq .Type \"ExternalIP\") (isIPv4 .Address)}}{{.Address | replace \".\" \"-\"}}{{break}}{{end}}{{end}}.ext-dns.test.com", }, { title: "non-empty annotation filter label",