Skip to content

Commit

Permalink
updated helm chart configuration values
Browse files Browse the repository at this point in the history
```improvement developer
The package `raw` now provides support for DNS APIs supporting only single record updates.
The *AliCloud* provider has been adapted accordingly and can be used as an example for implementing such providers.
```
  • Loading branch information
MartinWeindel committed Mar 27, 2020
1 parent 0b4f9e1 commit cd43cca
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 2 deletions.
48 changes: 48 additions & 0 deletions charts/external-dns-management/templates/deployment.yaml
Expand Up @@ -185,6 +185,54 @@ spec:
{{- if .Values.configuration.cacheTtl }}
- --cache-ttl={{ .Values.configuration.cacheTtl }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSCacheTtl }}
- --cloudflare-dns.cache-ttl={{ .Values.configuration.cloudflareDNSCacheTtl }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSDefaultPoolSize }}
- --cloudflare-dns.default.pool.size={{ .Values.configuration.cloudflareDNSDefaultPoolSize }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSDisableZoneStateCaching }}
- --cloudflare-dns.disable-zone-state-caching={{ .Values.configuration.cloudflareDNSDisableZoneStateCaching }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSDnsClass }}
- --cloudflare-dns.dns-class={{ .Values.configuration.cloudflareDNSDnsClass }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSDnsDelay }}
- --cloudflare-dns.dns-delay={{ .Values.configuration.cloudflareDNSDnsDelay }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSDnsPoolResyncPeriod }}
- --cloudflare-dns.dns.pool.resync-period={{ .Values.configuration.cloudflareDNSDnsPoolResyncPeriod }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSDnsPoolSize }}
- --cloudflare-dns.dns.pool.size={{ .Values.configuration.cloudflareDNSDnsPoolSize }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSDryRun }}
- --cloudflare-dns.dry-run={{ .Values.configuration.cloudflareDNSDryRun }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSIdentifier }}
- --cloudflare-dns.identifier={{ .Values.configuration.cloudflareDNSIdentifier }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSOwneridsPoolSize }}
- --cloudflare-dns.ownerids.pool.size={{ .Values.configuration.cloudflareDNSOwneridsPoolSize }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSProvidersPoolResyncPeriod }}
- --cloudflare-dns.providers.pool.resync-period={{ .Values.configuration.cloudflareDNSProvidersPoolResyncPeriod }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSProvidersPoolSize }}
- --cloudflare-dns.providers.pool.size={{ .Values.configuration.cloudflareDNSProvidersPoolSize }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSRescheduleDelay }}
- --cloudflare-dns.reschedule-delay={{ .Values.configuration.cloudflareDNSRescheduleDelay }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSSecretsPoolSize }}
- --cloudflare-dns.secrets.pool.size={{ .Values.configuration.cloudflareDNSSecretsPoolSize }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSSetup }}
- --cloudflare-dns.setup={{ .Values.configuration.cloudflareDNSSetup }}
{{- end }}
{{- if .Values.configuration.cloudflareDNSTtl }}
- --cloudflare-dns.ttl={{ .Values.configuration.cloudflareDNSTtl }}
{{- end }}
{{- if .Values.configuration.controllers }}
- --controllers={{ .Values.configuration.controllers }}
{{- end }}
Expand Down
19 changes: 18 additions & 1 deletion charts/external-dns-management/values.yaml
Expand Up @@ -53,7 +53,7 @@ configuration:
# awsRoute53ProvidersPoolResyncPeriod: 30s
# awsRoute53ProvidersPoolSize: 2
# awsRoute53RescheduleDelay: 120s
# awsRouteSecretsPoolSize: 2
# awsRoute53SecretsPoolSize: 2
# awsRoute53Setup: 10
# awsRoute53Ttl: 120
# azureDNSCacheTtl: 120
Expand All @@ -73,6 +73,22 @@ configuration:
# azureDNSSetup: 10
# azureDNSTtl: 120
# cacheTtl: 120
# cloudflareDNSCacheTtl: 120
# cloudflareDNSDefaultPoolSize: 2
# cloudflareDNSDisableZoneStateCaching: false
# cloudflareDNSDnsClass: "gardendns"
# cloudflareDNSDnsDelay: 10s
# cloudflareDNSDnsPoolResyncPeriod: 30s
# cloudflareDNSDnsPoolSize: 1
# cloudflareDNSDryRun: false
# cloudflareDNSIdentifier: ""
# cloudflareDNSOwneridsPoolSize: 1
# cloudflareDNSProvidersPoolResyncPeriod: 30s
# cloudflareDNSProvidersPoolSize: 2
# cloudflareDNSRescheduleDelay: 120s
# cloudflareDNSSecretsPoolSize: 2
# cloudflareDNSSetup: 10
# cloudflareDNSTtl: 120
controllers: all
# cpuprofile: ""
# disableNamespaceRestriction: false
Expand Down Expand Up @@ -107,6 +123,7 @@ configuration:
# googleCloudDNSOwneridsPoolSize: 1
# googleCloudDNSProvidersPoolResyncPeriod: 30s
# googleCloudDNSProvidersPoolSize: 2
# googleCloudDNSRescheduleDelay: 120s
# googleCloudDNSSecretsPoolSize: 2
# googleCloudDNSSetup: 10
# googleCloudDNSTtl: 120
Expand Down
20 changes: 19 additions & 1 deletion hack/generateChartOptions.py
Expand Up @@ -59,6 +59,23 @@
--azure-dns.ttl int Default time-to-live for DNS entries
--cache-dir string default for all controller "cache-dir" options
--cache-ttl int default for all controller "cache-ttl" options
--cloudflare-dns.cache-dir string Directory to store zone caches (for reload after restart)
--cloudflare-dns.cache-ttl int Time-to-live for provider hosted zone cache
--cloudflare-dns.default.pool.size int Worker pool size for pool default of controller cloudflare-dns (default: 2)
--cloudflare-dns.disable-zone-state-caching disable use of cached dns zone state on changes
--cloudflare-dns.dns-class string Identifier used to differentiate responsible controllers for entries
--cloudflare-dns.dns-delay duration delay between two dns reconciliations
--cloudflare-dns.dns.pool.resync-period duration Period for resynchronization of pool dns of controller cloudflare-dns (default: 15m0s)
--cloudflare-dns.dns.pool.size int Worker pool size for pool dns of controller cloudflare-dns (default: 1)
--cloudflare-dns.dry-run just check, don't modify
--cloudflare-dns.identifier string Identifier used to mark DNS entries
--cloudflare-dns.ownerids.pool.size int Worker pool size for pool ownerids of controller cloudflare-dns (default: 1)
--cloudflare-dns.providers.pool.resync-period duration Period for resynchronization of pool providers of controller cloudflare-dns (default: 10m0s)
--cloudflare-dns.providers.pool.size int Worker pool size for pool providers of controller cloudflare-dns (default: 2)
--cloudflare-dns.reschedule-delay duration reschedule delay after losing provider
--cloudflare-dns.secrets.pool.size int Worker pool size for pool secrets of controller cloudflare-dns (default: 2)
--cloudflare-dns.setup int number of processors for controller setup
--cloudflare-dns.ttl int Default time-to-live for DNS entries
-c, --controllers string comma separated list of controllers to start (<name>,source,target,all) (default "all")
--cpuprofile string set file for cpu profiling
--disable-namespace-restriction disable access restriction for namespace local access only
Expand Down Expand Up @@ -187,10 +204,11 @@ def toCamelCase(name):
str = str.replace("ingressDns", "ingressDNS")
str = str.replace("serviceDns", "serviceDNS")
str = str.replace("googleClouddns", "googleCloudDNS")
str = str.replace("cloudflareDns", "cloudflareDNS")
return str

excluded = {"name", "help", "identifier", "dry-run",
"cache-dir", "alicloud-dns.cache-dir", "aws-route53.cache-dir", "azure-dns.cache-dir", "google-clouddns.cache-dir", "openstack-designate.cache-dir"}
"cache-dir", "alicloud-dns.cache-dir", "aws-route53.cache-dir", "azure-dns.cache-dir", "google-clouddns.cache-dir", "openstack-designate.cache-dir", "cloudflare-dns.cache-dir"}
for line in options.split("\n"):
m = re.match(r"\s+(?:-[^-]+)?--(\S+)\s", line)
if m:
Expand Down

0 comments on commit cd43cca

Please sign in to comment.