Skip to content

Commit

Permalink
Merge pull request #10 from saturncloud/bhperry/issuer-templates
Browse files Browse the repository at this point in the history
Add templates for create httpreq issuer and clusterissuer
  • Loading branch information
bhperry authored Sep 24, 2024
2 parents 36883a2 + f52d3d8 commit 574be69
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions deploy/httpreq-webhook/templates/issuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{{- if .Values.issuer.enabled }}
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: {{ .Values.issuer.name }}
namespace: {{ .Values.issuer.namespace | default .Release.Namespace }}
spec:
acme:
email: {{ required .Values.issuer.email "issuer.email is required" }}
server: {{ .Values.issuer.server }}
privateKeySecretRef:
name: acme-issuer-account-key
solvers:
- dns01:
webhook:
groupName: {{ .Values.groupName }}
solverName: httpreq
config:
endpoint: {{ required .Values.issuer.endpoint "issuer.endpoint is required" }}
{{- if .Values.issuer.headersSecretRef }}
headerSecretRef:
name: {{ .Values.issuer.headersSecretRef.name }}
namespace: {{ .Values.issuer.headersSecretRef.namespace }}
{{- end }}
{{- end }}
{{- if .Values.clusterIssuer.enabled }}
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: {{ .Values.clusterIssuer.name }}
spec:
acme:
email: {{ required .Values.clusterIssuer.email "clusterIssuer.email is required" }}
server: {{ .Values.clusterIssuer.server }}
privateKeySecretRef:
name: acme-cluster-issuer-account-key
solvers:
- dns01:
webhook:
groupName: {{ .Values.groupName }}
solverName: httpreq
config:
endpoint: {{ required .Values.issuer.endpoint "issuer.endpoint is required" }}
{{- if .Values.issuer.headersSecretRef }}
headerSecretRef:
name: {{ .Values.issuer.headersSecretRef.name }}
namespace: {{ .Values.issuer.headersSecretRef.namespace }}
{{- end }}
{{- end }}

0 comments on commit 574be69

Please sign in to comment.