Skip to content

Commit 73f5545

Browse files
Ani1357srodenhuis
andauthored
fix: update dns ttl for linode dns provider (#1654)
Co-authored-by: Sander Rodenhuis <[email protected]>
1 parent 9cd8b83 commit 73f5545

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

charts/team-ns/templates/_ingress.tpl

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ kind: Ingress
5757
metadata:
5858
annotations:
5959
externaldns: "true"
60+
{{- if and $v.dns.provider (and $v.dns.provider.linode) }}
61+
# Check Linode Api documentation for allowed values in seconds: https://developers-linode.netlify.app/api/v4/domains
62+
external-dns.alpha.kubernetes.io/ttl: "1h"
63+
{{- end }}
6064
{{- if $hasTlsPass }}
6165
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
6266
{{- else }}

charts/team-ns/templates/ingress/harbor-public.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ kind: Ingress
1212
metadata:
1313
annotations:
1414
externaldns: "true"
15+
{{- if and $v.dns.provider (and $v.dns.provider.linode) }}
16+
# Check Linode Api documentation for allowed values in seconds: https://developers-linode.netlify.app/api/v4/domains
17+
external-dns.alpha.kubernetes.io/ttl: "1h"
18+
{{- end }}
1519
nginx.ingress.kubernetes.io/proxy-buffering: "off"
1620
nginx.ingress.kubernetes.io/proxy-request-buffering: "off"
1721
nginx.ingress.kubernetes.io/enable-modsecurity: "false"

helmfile.d/helmfile-15.ingress-core.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@ releases:
5858
builds: {{- $tca | get "builds" list | toYaml | nindent 10 }}
5959
policies: {{- $tca | get "policies" list | toYaml | nindent 10 }}
6060
sealedsecrets: {{- $tca | get "sealedsecrets" list | toYaml | nindent 10 }}
61+
dns: {{- $v.dns | toYaml | nindent 10 }}

helmfile.d/helmfile-60.teams.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ releases:
244244
oidc: {{- $v | get "oidc" dict | toYaml | nindent 10 }}
245245
domain: {{ $domain }}
246246
ingress: {{- $v.ingress | toYaml | nindent 10 }}
247+
dns: {{- $v.dns | toYaml | nindent 10 }}
247248
- {{- omit $team "apps" | toYaml | nindent 8 }}
248249
teamId: {{ $teamId }}
249250
teamIds: {{- toYaml (keys $v.teamConfig) | nindent 10 }}

values/oauth2-proxy/oauth2-proxy-raw.gotmpl

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ resources:
1010
metadata:
1111
annotations:
1212
externaldns: "true"
13+
{{- if and $v.dns.provider (and $v.dns.provider.linode) }}
14+
# Check Linode Api documentation for allowed values in seconds: https://developers-linode.netlify.app/api/v4/domains
15+
external-dns.alpha.kubernetes.io/ttl: "1h"
16+
{{- end }}
1317
nginx.ingress.kubernetes.io/ssl-redirect: "true"
1418
{{- if and (eq $v.cluster.provider "custom") (hasKey $v.ingress.platformClass "entrypoint") (ne $ingress.entrypoint "") }}
1519
external-dns.alpha.kubernetes.io/target: {{ $v.ingress.platformClass }}

0 commit comments

Comments
 (0)