Skip to content

Commit

Permalink
fix: update dns ttl for linode dns provider (#1654)
Browse files Browse the repository at this point in the history
Co-authored-by: Sander Rodenhuis <srodenhu@akamai.com>
  • Loading branch information
Ani1357 and srodenhuis authored Jul 19, 2024
1 parent 9cd8b83 commit 73f5545
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/team-ns/templates/_ingress.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ kind: Ingress
metadata:
annotations:
externaldns: "true"
{{- if and $v.dns.provider (and $v.dns.provider.linode) }}
# Check Linode Api documentation for allowed values in seconds: https://developers-linode.netlify.app/api/v4/domains
external-dns.alpha.kubernetes.io/ttl: "1h"
{{- end }}
{{- if $hasTlsPass }}
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
{{- else }}
Expand Down
4 changes: 4 additions & 0 deletions charts/team-ns/templates/ingress/harbor-public.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ kind: Ingress
metadata:
annotations:
externaldns: "true"
{{- if and $v.dns.provider (and $v.dns.provider.linode) }}
# Check Linode Api documentation for allowed values in seconds: https://developers-linode.netlify.app/api/v4/domains
external-dns.alpha.kubernetes.io/ttl: "1h"
{{- end }}
nginx.ingress.kubernetes.io/proxy-buffering: "off"
nginx.ingress.kubernetes.io/proxy-request-buffering: "off"
nginx.ingress.kubernetes.io/enable-modsecurity: "false"
Expand Down
1 change: 1 addition & 0 deletions helmfile.d/helmfile-15.ingress-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ releases:
builds: {{- $tca | get "builds" list | toYaml | nindent 10 }}
policies: {{- $tca | get "policies" list | toYaml | nindent 10 }}
sealedsecrets: {{- $tca | get "sealedsecrets" list | toYaml | nindent 10 }}
dns: {{- $v.dns | toYaml | nindent 10 }}
1 change: 1 addition & 0 deletions helmfile.d/helmfile-60.teams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ releases:
oidc: {{- $v | get "oidc" dict | toYaml | nindent 10 }}
domain: {{ $domain }}
ingress: {{- $v.ingress | toYaml | nindent 10 }}
dns: {{- $v.dns | toYaml | nindent 10 }}
- {{- omit $team "apps" | toYaml | nindent 8 }}
teamId: {{ $teamId }}
teamIds: {{- toYaml (keys $v.teamConfig) | nindent 10 }}
Expand Down
4 changes: 4 additions & 0 deletions values/oauth2-proxy/oauth2-proxy-raw.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ resources:
metadata:
annotations:
externaldns: "true"
{{- if and $v.dns.provider (and $v.dns.provider.linode) }}
# Check Linode Api documentation for allowed values in seconds: https://developers-linode.netlify.app/api/v4/domains
external-dns.alpha.kubernetes.io/ttl: "1h"
{{- end }}
nginx.ingress.kubernetes.io/ssl-redirect: "true"
{{- if and (eq $v.cluster.provider "custom") (hasKey $v.ingress.platformClass "entrypoint") (ne $ingress.entrypoint "") }}
external-dns.alpha.kubernetes.io/target: {{ $v.ingress.platformClass }}
Expand Down

0 comments on commit 73f5545

Please sign in to comment.