Skip to content

Commit

Permalink
add quotes to ttl example to force string context
Browse files Browse the repository at this point in the history
Annotation values may not be an integer, they must be handled as a
string.  The current example tested on k8s 1.20.13 generates this error
message:

    json: cannot unmarshal number into Go struct field ObjectMeta.metadata.annotations of type string
  • Loading branch information
jhoblitt committed Jan 14, 2022
1 parent f683531 commit 4463ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ metadata:
name: nginx
annotations:
external-dns.alpha.kubernetes.io/hostname: nginx.external-dns-test.my-org.com
external-dns.alpha.kubernetes.io/ttl: 60
external-dns.alpha.kubernetes.io/ttl: "60"
spec:
...
```
Expand Down

0 comments on commit 4463ab9

Please sign in to comment.