File tree 8 files changed +20
-17
lines changed
charts/cert-manager-webhook-dnsimple
8 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ The Helm chart accepts the following values:
66
66
| ` image.pullPolicy` | ✔️ | Image pull policy of the solver | ` IfNotPresent` |
67
67
| ` logLevel` | | Set the verbosity of the solver | _empty_ |
68
68
| ` useUnprivilegedPort` | | Use an unprivileged container-port for the webhook | ` true` |
69
- | ` groupName` | ✔️ | Identifies the company that created the webhook | _empty_ |
69
+ | ` groupName` | ✔️ | Name of the API group used to register the webhook API service as | ` acme.dnsimple.com ` |
70
70
| ` certManager.namespace` | ✔️ | The namespace cert-manager was installed to | ` cert-manager` |
71
71
| ` certManager.serviceAccountName` | ✔️ | The service account cert-manager runs under | ` cert-manager` |
72
72
Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ Expand the name of the chart.
6
6
{ {- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix " -" -} }
7
7
{ {- end -} }
8
8
9
+ { {/*
10
+ APIService group name
11
+ */} }
12
+ { {- define " dnsimple-webhook.api-group" -} }
13
+ { {- default " acme.dnsimple.com" (.Values.groupName) -} }
14
+ { {- end -} }
15
+
9
16
{ {/*
10
17
Create a default fully qualified app name.
11
18
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
Original file line number Diff line number Diff line change 2
2
apiVersion : {{ $APIRegistrationAPIVersion }}
3
3
kind : APIService
4
4
metadata :
5
- name : v1alpha1.{{ .Values.groupName }}
5
+ name : v1alpha1.{{ include "dnsimple-webhook.api-group" . }}
6
6
labels :
7
7
app : {{ include "dnsimple-webhook.name" . }}
8
8
chart : {{ include "dnsimple-webhook.chart" . }}
@@ -11,7 +11,7 @@ metadata:
11
11
annotations :
12
12
cert-manager.io/inject-ca-from : " {{ .Release.Namespace }}/{{ include " dnsimple-webhook.servingCertificate" . }}"
13
13
spec :
14
- group : {{ .Values.groupName }}
14
+ group : {{ include "dnsimple-webhook.api-group" . }}
15
15
groupPriorityMinimum : 1000
16
16
versionPriority : 15
17
17
service :
Original file line number Diff line number Diff line change 43
43
{{- end }}
44
44
env :
45
45
- name : GROUP_NAME
46
- value : {{ .Values.groupName | quote }}
46
+ value : {{ include "dnsimple-webhook.api-group" . | quote }}
47
47
ports :
48
48
- name : https
49
49
{{- if .Values.useUnprivilegedPort }}
Original file line number Diff line number Diff line change 22
22
key : token
23
23
name : {{ include "dnsimple-webhook.tokenSecretName" . }}
24
24
accountID : {{ .Values.dnsimple.accountID | quote }}
25
- groupName : {{ .Values.groupName }}
25
+ groupName : {{ include "dnsimple-webhook.api-group" . }}
26
26
solverName : dnsimple
27
27
{{- end -}}
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ metadata:
65
65
heritage : {{ .Release.Service }}
66
66
rules :
67
67
- apiGroups :
68
- - {{ .Values.groupName }}
68
+ - {{ include "dnsimple-webhook.api-group" . }}
69
69
resources :
70
70
- ' *'
71
71
verbs :
Original file line number Diff line number Diff line change 22
22
key : token
23
23
name : {{ include "dnsimple-webhook.tokenSecretName" . }}
24
24
accountID : {{ .Values.dnsimple.accountID | quote }}
25
- groupName : {{ .Values.groupName }}
25
+ groupName : {{ include "dnsimple-webhook.api-group" . }}
26
26
solverName : dnsimple
27
27
{{- end -}}
Original file line number Diff line number Diff line change 1
- # The GroupName here is used to identify your company or business unit that
2
- # created this webhook.
3
- # For example, this may be "acme.mycompany.com".
4
- # This name will need to be referenced in each Issuer's `webhook` stanza to
5
- # inform cert-manager of where to send ChallengePayload resources in order to
6
- # solve the DNS01 challenge.
7
- # This group name should be **unique**, hence using your own company's domain
8
- # here is recommended.
9
- groupName : " "
1
+ # groupName sets the API group name for the API service that registers this webhook service.
2
+ # It will be used when specifying an issuer for a (Cluster)Issuer object.
3
+ # When customizing, provide an FQDN, for example acme.my-company.com.
4
+ groupName : " acme.dnsimple.com"
5
+
10
6
certManager :
11
7
namespace : cert-manager
12
8
serviceAccountName : cert-manager
@@ -47,4 +43,4 @@ resources: {}
47
43
48
44
nodeSelector : {}
49
45
tolerations : []
50
- affinity : {}
46
+ affinity : {}
You can’t perform that action at this time.
0 commit comments