Skip to content

Commit 70123fe

Browse files
authored
feat: Create TLS certificates using cert-manager (#3)
* feat: Added support for TLS certificates using cert-manager * chore: Added CircleCI badge to README
1 parent ab995da commit 70123fe

File tree

6 files changed

+35
-2
lines changed

6 files changed

+35
-2
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
steps:
77
- add_ssh_keys:
88
fingerprints:
9-
- "c8:e3:fe:92:a1:f8:07:87:ff:23:1f:e7:25:4f:7b:9d"
9+
- "ef:eb:ba:46:70:a4:6e:1b:73:da:c6:18:8d:ad:32:82"
1010
- checkout
1111
- run:
1212
name: Install dependancies

Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: helm-django
33
description: A Helm chart for Kubernetes
44
type: application
5-
version: 1.0.0
5+
version: 1.1.0
66

77
sources:
88
- https://github.com/jengo/helm-django

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# helm-django
2+
[![jengo](https://circleci.com/gh/jengo/helm-django.svg?style=svg)](<LINK>)
3+
24

35
This helm template is intentionally very generic and basic. This is meant to act as a starting point to get your application up and running with little effort.
46

templates/certificate.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{{- if .Values.certManager.enabled }}
2+
apiVersion: cert-manager.io/v1
3+
kind: Certificate
4+
metadata:
5+
name: {{ .Values.certManager.fqdn }}
6+
spec:
7+
secretName: {{ .Values.certManager.fqdn }}
8+
commonName: "{{ .Values.certManager.fqdn }}"
9+
dnsNames:
10+
- "{{ .Values.certManager.fqdn }}"
11+
issuerRef:
12+
name: {{ .Values.certManager.issuer.name }}
13+
kind: ClusterIssuer
14+
group: cert-manager.io
15+
{{- end }}

test-migrate-values.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ argoWorkflow:
44
deployment:
55
enabled: false
66

7+
certManager:
8+
enabled: true
9+
fqdn: example.jolene.dev
10+
issuer:
11+
# Required value: set issuer for cert-manager
12+
# https://cert-manager.io/docs/concepts/issuer/
13+
name: "letsencrypt-prod"
14+
715
podAnnotations:
816
vault.security.banzaicloud.io/vault-addr: "https://vault.vault:8200"
917
vault.security.banzaicloud.io/vault-tls-secret: "vault-tls"

values.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ service:
8383
protocol: TCP
8484
name: http
8585

86+
certManager:
87+
enabled: false
88+
fqdn: example.jolene.dev
89+
issuer:
90+
# Required value: set issuer for cert-manager
91+
# https://cert-manager.io/docs/concepts/issuer/
92+
name: "letsencrypt-prod"
93+
8694
# TODO: Not happy with this layout, it's a pain in the ass to use
8795
traefikIngressRoute:
8896
enabled: false

0 commit comments

Comments
 (0)