Skip to content

Commit 12c11dd

Browse files
merllsrodenhuis
andauthored
feat: support for Akamai EdgeDNS (#1708)
Co-authored-by: Sander Rodenhuis <[email protected]>
1 parent 776b94e commit 12c11dd

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

values-schema.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,34 @@ definitions:
136136
targetMemoryUtilizationPercentage:
137137
type: integer
138138
default: 80
139+
akamai:
140+
definitions:
141+
dns:
142+
properties:
143+
host:
144+
title: Akamai API host
145+
description: Akamai Edgegrid API server
146+
$ref: '#/definitions/wordCharacterPattern'
147+
accessToken:
148+
title: Akamai access token
149+
description: Akamai Edgegrid API access token
150+
$ref: '#/definitions/wordCharacterPattern'
151+
x-secret: ''
152+
clientToken:
153+
title: Akamai client token
154+
description: Akamai Edgegrid API client token
155+
$ref: '#/definitions/wordCharacterPattern'
156+
x-secret: ''
157+
clientSecret:
158+
title: Akamai client secret
159+
description: Akamai Edgegrid API client secret
160+
$ref: '#/definitions/wordCharacterPattern'
161+
x-secret: ''
162+
required:
163+
- host
164+
- accessToken
165+
- clientToken
166+
- clientSecret
139167
aws:
140168
definitions:
141169
accessKey:
@@ -2503,6 +2531,13 @@ properties:
25032531
provider:
25042532
description: The DNS provider managing the domains.
25052533
oneOf:
2534+
- title: Akamai EdgeDNS
2535+
additionalProperties: false
2536+
properties:
2537+
akamai:
2538+
$ref: '#/definitions/akamai/definitions/dns'
2539+
required:
2540+
- akamai
25062541
- title: AWS
25072542
description: Uses credentials when either a pair of id+key or a secret name is provided. Assumes node role otherwise.
25082543
additionalProperties: false

values/cert-manager/cert-manager-raw.gotmpl

+17
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ resources:
1313
data:
1414
{{- if hasKey $p "google" }}
1515
secret: "{{ $p.google.serviceAccountKey | b64enc }}"
16+
{{- else if hasKey $p "akamai" }}
17+
access_token: {{ $p.akamai.accessToken | b64enc | quote }}
18+
client_token: {{ $p.akamai.clientToken | b64enc | quote }}
19+
client_secret: {{ $p.akamai.clientSecret | b64enc | quote }}
1620
{{- else if hasKey $p "azure-private-dns" }}
1721
secret: "{{ $p | get "azure-private-dns.aadClientSecret" | b64enc }}"
1822
{{- else if hasKey $p "azure" }}
@@ -48,6 +52,19 @@ resources:
4852
solvers:
4953
- selector: {}
5054
dns01:
55+
{{- with $p | get "akamai" nil }}
56+
akamai:
57+
serviceConsumerDomain: {{ .host }}
58+
accessTokenSecretRef:
59+
name: external-dns
60+
key: access_token
61+
clientTokenSecretRef:
62+
name: external-dns
63+
key: client_token
64+
clientSecretSecretRef:
65+
name: external-dns
66+
key: client_secret
67+
{{- end }}
5168
{{- with $p | get "aws" nil }}
5269
route53:
5370
{{- with . | get "credentials.accessKey" nil }}

0 commit comments

Comments
 (0)