Skip to content

Commit 98cee58

Browse files
authored
0 parents  commit 98cee58

17 files changed

+1157
-0
lines changed

src/README.md

Lines changed: 152 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

src/cert-manager-issuer/Chart.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: v2
2+
name: cert-manager-issuer
3+
description: Provision an issuer for the certificate manager
4+
icon: https://raw.githubusercontent.com/jetstack/cert-manager/master/logo/logo.png
5+
6+
# A chart can be either an 'application' or a 'library' chart.
7+
#
8+
# Application charts are a collection of templates that can be packaged into versioned archives
9+
# to be deployed.
10+
#
11+
# Library charts provide useful utilities or functions for the chart developer. They're included as
12+
# a dependency of application charts to inject those utilities and functions into the rendering
13+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
14+
type: application
15+
16+
# This is the chart version. This version number should be incremented each time you make changes
17+
# to the chart and its templates, including the app version.
18+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
19+
version: 0.1.0
20+
21+
# This is the version number of the application being deployed. This version number should be
22+
# incremented each time you make changes to the application. Versions are not expected to
23+
# follow Semantic Versioning. They should reflect the version the application is using.
24+
# It is recommended to use it with quotes.
25+
appVersion: "1.0.0"
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{{- if .Values.letsencrypt_installed }}
2+
---
3+
apiVersion: cert-manager.io/v1
4+
kind: ClusterIssuer
5+
metadata:
6+
name: "letsencrypt-staging"
7+
spec:
8+
acme:
9+
# The ACME server URL
10+
server: https://acme-staging-v02.api.letsencrypt.org/directory
11+
# Email address used for ACME registration
12+
email: {{ printf .Values.support_email_template .Values.account | quote }}
13+
# Name of a secret used to store the ACME account private key
14+
privateKeySecretRef:
15+
name: letsencrypt-staging
16+
solvers:
17+
# # Enable the HTTP-01 challenge provider
18+
# - http01:
19+
# ingress:
20+
# class: nginx
21+
# Enable the DNS-01 challenge provider
22+
- dns01:
23+
route53:
24+
region: {{ .Values.dns_region | quote }}
25+
---
26+
apiVersion: cert-manager.io/v1
27+
kind: ClusterIssuer
28+
metadata:
29+
name: letsencrypt-prod
30+
spec:
31+
acme:
32+
# The ACME server URL
33+
server: https://acme-v02.api.letsencrypt.org/directory
34+
# Email address used for ACME registration
35+
email: {{ printf .Values.support_email_template .Values.account | quote }}
36+
# Name of a secret used to store the ACME account private key
37+
privateKeySecretRef:
38+
name: letsencrypt-prod
39+
solvers:
40+
# # Enable the HTTP-01 challenge provider
41+
# - http01:
42+
# ingress:
43+
# class: nginx
44+
# Enable the DNS-01 challenge provider
45+
- dns01:
46+
route53:
47+
region: {{ .Values.dns_region | quote }}
48+
{{- end }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{{- if .Values.selfsigned_installed }}
2+
---
3+
apiVersion: cert-manager.io/v1
4+
kind: Certificate
5+
metadata:
6+
name: my-selfsigned-ca
7+
# Define resources: https://cert-manager.io/docs/configuration/selfsigned/#bootstrapping-ca-issuers
8+
# Create cert: https://docs.cert-manager.io/en/release-0.8/tasks/issuers/setup-ca.html
9+
spec:
10+
isCA: true
11+
commonName: my-selfsigned-ca
12+
secretName: {{ .Values.selfsigned_secretname }}
13+
privateKey:
14+
algorithm: ECDSA
15+
size: 256
16+
issuerRef:
17+
name: selfsigning-issuer
18+
kind: ClusterIssuer
19+
group: cert-manager.io
20+
{{- end }}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{{- if .Values.selfsigned_installed }}
2+
---
3+
apiVersion: cert-manager.io/v1
4+
kind: ClusterIssuer
5+
metadata:
6+
name: selfsigning-issuer
7+
spec:
8+
selfSigned: {}
9+
---
10+
apiVersion: cert-manager.io/v1
11+
kind: Issuer
12+
metadata:
13+
name: my-ca-issuer
14+
spec:
15+
ca:
16+
secretName: {{ .Values.selfsigned_secretname }}
17+
{{- end }}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
letsencrypt_installed: false
2+
3+
selfsigned_installed: true
4+
5+
selfsigned_secretname: ca-key-pair
6+
7+
support_email_template: aws+%[email protected]

0 commit comments

Comments
 (0)