From dfb36f716f05ae24d93847018ef12a99492ff089 Mon Sep 17 00:00:00 2001 From: devthejo Date: Tue, 17 Sep 2024 19:18:12 +0200 Subject: [PATCH] feat: dns custom --- .../templates/buildkitd.configmap.yaml | 13 +++++++++++++ charts/buildkit-service/values.yaml | 6 ++++++ 2 files changed, 19 insertions(+) diff --git a/charts/buildkit-service/templates/buildkitd.configmap.yaml b/charts/buildkit-service/templates/buildkitd.configmap.yaml index 2ba1852..c26dcdd 100644 --- a/charts/buildkit-service/templates/buildkitd.configmap.yaml +++ b/charts/buildkit-service/templates/buildkitd.configmap.yaml @@ -52,3 +52,16 @@ data: all = true keepBytes = {{ .Values.gc.defaultPolicy.keepBytes | toYaml }} keepDuration = {{ .Values.gc.defaultPolicy.keepDuration | toYaml }} + + {{ if .Values.dns.enabled }} + [dns] + {{ if .Values.dns.nameservers }} + nameservers={{ .Values.dns.nameservers | toJson }} + {{ end }} + {{ if .Values.dns.options }} + options={{ .Values.dns.options | toJson }} + {{ end }} + {{ if .Values.dns.searchDomains }} + searchDomains={{ .Values.dns.searchDomains | toJson }} + {{ end }} + {{ end }} diff --git a/charts/buildkit-service/values.yaml b/charts/buildkit-service/values.yaml index 1c1806f..b595802 100644 --- a/charts/buildkit-service/values.yaml +++ b/charts/buildkit-service/values.yaml @@ -106,3 +106,9 @@ init: mode: initContainer # securityContext | initContainer maxbytes: "25000000" maxkeys: "1000000" + +dns: + enabled: false + nameservers: ["1.1.1.1","8.8.8.8"] + options: null # [] + searchDomains: null # [] \ No newline at end of file