-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: Updating helm structure * fix: Updating release process * fix: Adding decommission note for defaultClusterIssuer release
- Loading branch information
Showing
14 changed files
with
327 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v2 | ||
name: clusterIssuer | ||
description: Default Cert Manager Cluster Issuer | ||
type: application | ||
version: 0.1.0 | ||
keywords: | ||
- cluster-issuer | ||
- cert-manager | ||
- acme | ||
sources: | ||
- https://github.com/lablabs/terraform-aws-eks-aws-cert-manager/blob/master/helm/clusterIssuer/values.yaml | ||
maintainers: | ||
- name: dojci | ||
email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "clusterIssuer.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
*/}} | ||
{{- define "clusterIssuer.fullname" -}} | ||
{{- if .Values.fullnameOverride -}} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- $name := default .Chart.Name .Values.nameOverride -}} | ||
{{- if contains $name .Release.Name -}} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "clusterIssuer.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the service account to use | ||
*/}} | ||
{{- define "clusterIssuer.serviceAccountName" -}} | ||
{{- if .Values.serviceAccount.create -}} | ||
{{ default (include "clusterIssuer.fullname" .) .Values.serviceAccount.name }} | ||
{{- else -}} | ||
{{ default "default" .Values.serviceAccount.name }} | ||
{{- end -}} | ||
{{- end -}} |
32 changes: 32 additions & 0 deletions
32
helm/clusterIssuer/templates/clusterIssuer-cloudflare.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{{- $outer := . -}} | ||
{{- range $clusterIssuerName, $clusterIssuerValues := .Values.cloudflare }} | ||
{{- with (merge (dict "clusterIssuerName" $clusterIssuerName "clusterIssuerValues" $clusterIssuerValues) $outer) }} | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: {{ .clusterIssuerName }} | ||
labels: | ||
app: {{ include "clusterIssuer.name" . }} | ||
app.kubernetes.io/name: {{ include "clusterIssuer.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/component: "clusterIssuer" | ||
helm.sh/chart: {{ include "clusterIssuer.chart" . }} | ||
spec: | ||
acme: | ||
{{- toYaml .clusterIssuerValues.acme | nindent 4 }} | ||
solvers: | ||
- dns01: | ||
cloudflare: | ||
{{- with .clusterIssuerValues.apiTokenSecretRef }} | ||
apiTokenSecretRef: | ||
{{- toYaml . | nindent 14 }} | ||
{{- end -}} | ||
{{- with .clusterIssuerValues.dnsZones }} | ||
selector: | ||
dnsZones: | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{{- $outer := . -}} | ||
{{- range $clusterIssuerName, $clusterIssuerValues := .Values.http }} | ||
{{- with (merge (dict "clusterIssuerName" $clusterIssuerName "clusterIssuerValues" $clusterIssuerValues) $outer) }} | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: {{ .clusterIssuerName }} | ||
labels: | ||
app: {{ include "clusterIssuer.name" . }} | ||
app.kubernetes.io/name: {{ include "clusterIssuer.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/component: "clusterIssuer" | ||
helm.sh/chart: {{ include "clusterIssuer.chart" . }} | ||
spec: | ||
acme: | ||
{{- toYaml .clusterIssuerValues.acme | nindent 4 }} | ||
solvers: | ||
- http01: | ||
ingress: | ||
{{- with .clusterIssuerValues.ingressClassName }} | ||
ingressClassName: {{ . | quote }} | ||
{{- end }} | ||
{{- with .clusterIssuerValues.class }} | ||
class: {{ . | quote }} | ||
{{- end }} | ||
{{- with .clusterIssuerValues.ingressName }} | ||
name: {{ . | quote }} | ||
{{- end }} | ||
{{- with .clusterIssuerValues.serviceType }} | ||
serviceType: {{ . | quote }} | ||
{{- end }} | ||
podTemplate: | ||
metadata: | ||
labels: | ||
app: {{ include "clusterIssuer.name" . }} | ||
app.kubernetes.io/name: {{ include "clusterIssuer.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/component: "clusterIssuer" | ||
helm.sh/chart: {{ include "clusterIssuer.chart" . }} | ||
{{- with $.commonLabels }} | ||
{{- toYaml . | nindent 18 }} | ||
{{- end }} | ||
{{- with .clusterIssuerValues.podLabels }} | ||
{{- toYaml . | nindent 18 }} | ||
{{- end }} | ||
{{- with .clusterIssuerValues.podAnnotations }} | ||
annotations: | ||
{{- toYaml . | nindent 18 }} | ||
{{- end }} | ||
{{- with .clusterIssuerValues.podSpec }} | ||
spec: | ||
{{- with .nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 18 }} | ||
{{- end }} | ||
{{- with .affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 18 }} | ||
{{- end }} | ||
{{- with .tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 18 }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
ingressTemplate: | ||
metadata: | ||
labels: | ||
app: {{ include "clusterIssuer.name" . }} | ||
app.kubernetes.io/name: {{ include "clusterIssuer.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/component: "clusterIssuer" | ||
helm.sh/chart: {{ include "clusterIssuer.chart" . }} | ||
{{- with $.commonLabels }} | ||
{{- toYaml . | nindent 18 }} | ||
{{- end }} | ||
{{- with .clusterIssuerValues.ingressLabels }} | ||
{{- toYaml . | nindent 18 }} | ||
{{- end }} | ||
{{- with .clusterIssuerValues.ingressAnnotations }} | ||
annotations: | ||
{{- toYaml . | nindent 18 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{{- $outer := . -}} | ||
{{- range $clusterIssuerName, $clusterIssuerValues := .Values.route53 }} | ||
{{- with (merge (dict "clusterIssuerName" $clusterIssuerName "clusterIssuerValues" $clusterIssuerValues) $outer) }} | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: {{ .clusterIssuerName }} | ||
labels: | ||
app: {{ include "clusterIssuer.name" . }} | ||
app.kubernetes.io/name: {{ include "clusterIssuer.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/component: "clusterIssuer" | ||
helm.sh/chart: {{ include "clusterIssuer.chart" . }} | ||
spec: | ||
acme: | ||
{{- toYaml .clusterIssuerValues.acme | nindent 4 }} | ||
solvers: | ||
- dns01: | ||
route53: | ||
{{- if .clusterIssuerValues.region }} | ||
region: {{ .clusterIssuerValues.region }} | ||
{{- end }} | ||
{{- if .clusterIssuerValues.hostedZoneID }} | ||
hostedZoneID: {{ .clusterIssuerValues.hostedZoneID }} | ||
{{- end }} | ||
{{- if .clusterIssuerValues.roleArn }} | ||
role: {{ .clusterIssuerValues.roleArn }} | ||
{{- end }} | ||
{{- with .clusterIssuerValues.dnsZones }} | ||
selector: | ||
dnsZones: | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
nameOverride: "" | ||
fullnameOverride: "" | ||
|
||
commonLabels: {} | ||
|
||
route53: | ||
default: | ||
acme: | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
email: [email protected] | ||
privateKeySecretRef: | ||
name: cluster-issuer-secret | ||
region: "eu-central-1" | ||
#hostedZoneID: DIKER8JEXAMPLE # optional, see policy above | ||
#roleArn: arn:aws:iam::YYYYYYYYYYYY:role/dns-manager | ||
dnsZones: | ||
- "example.com" | ||
http: | ||
http: | ||
acme: | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
email: [email protected] | ||
privateKeySecretRef: | ||
name: cluster-issuer-secret | ||
# ingressClassName: nginx # supported in cert-manager >= 1.12.0 | ||
# class: nginx # use only one parameter of [ingressClassName, class, ingressName] | ||
# ingressName: acme-http-solver | ||
|
||
serviceType: ClusterIP # optional, if not possible/desired to use `NodePort` as type for the HTTP01 challenge response service | ||
|
||
podLabels: {} | ||
podAnnotations: {} | ||
podSpec: {} # optional, `nodeSelector`, `tolerations` and `affinity` of solver pods can be set. No other `spec` fields can be edited | ||
|
||
ingressLabels: {} | ||
ingressAnnotations: {} | ||
cloudflare: | ||
cloudflare: | ||
acme: | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
email: [email protected] | ||
privateKeySecretRef: | ||
name: cluster-issuer-secret | ||
apiTokenSecretRef: | ||
name: cloudflare-api-token-secret | ||
key: api-token | ||
dnsZones: | ||
- "example.com" |
32 changes: 32 additions & 0 deletions
32
helm/defaultClusterIssuer/templates/clusterIssuer-cloudflare.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{{- $outer := . -}} | ||
{{- range $clusterIssuerName, $clusterIssuerValues := .Values.cloudflare }} | ||
{{- with (merge (dict "clusterIssuerName" $clusterIssuerName "clusterIssuerValues" $clusterIssuerValues) $outer) }} | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: {{ .clusterIssuerName }} | ||
labels: | ||
app: {{ include "defaultClusterIssuer.name" . }} | ||
app.kubernetes.io/name: {{ include "defaultClusterIssuer.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/component: "clusterIssuer" | ||
helm.sh/chart: {{ include "defaultClusterIssuer.chart" . }} | ||
spec: | ||
acme: | ||
{{- toYaml .clusterIssuerValues.acme | nindent 4 }} | ||
solvers: | ||
- dns01: | ||
cloudflare: | ||
{{- with .clusterIssuerValues.apiTokenSecretRef }} | ||
apiTokenSecretRef: | ||
{{- toYaml . | nindent 14 }} | ||
{{- end -}} | ||
{{- with .clusterIssuerValues.dnsZones }} | ||
selector: | ||
dnsZones: | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ route53: | |
dnsZones: | ||
- "example.com" | ||
http: | ||
default-http: | ||
http: | ||
acme: | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
email: [email protected] | ||
|
@@ -34,3 +34,15 @@ http: | |
|
||
ingressLabels: {} | ||
ingressAnnotations: {} | ||
cloudflare: | ||
cloudflare: | ||
acme: | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
email: [email protected] | ||
privateKeySecretRef: | ||
name: cluster-issuer-secret | ||
apiTokenSecretRef: | ||
name: cloudflare-api-token-secret | ||
key: api-token | ||
dnsZones: | ||
- "example.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters