-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from seagits/feat/kas-144
feat: added new helm chart to deploy cert manager issuers
- Loading branch information
Showing
6 changed files
with
128 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
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: cert-manager-issuers | ||
description: Create list of cert manager Issuers | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 0.1.0 | ||
appVersion: "0.1.0" | ||
maintainers: | ||
- name: Seagit | ||
email: contact@seagit.com | ||
url: https://charts.seagit.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Get the Issuers by running these commands: | ||
|
||
{{- range .Values.issuers }} | ||
{{- if eq .kind "Issuer" }} | ||
kubectl get --namespace {{ .namespace }} issuer {{ .name }} | ||
{{- else }} | ||
kubectl get clusterissuer {{ .name }} | ||
{{- 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,35 @@ | ||
{{- range .Values.issuers }} | ||
apiVersion: cert-manager.io/v1 | ||
kind: {{ .kind }} | ||
metadata: | ||
name: {{ .name | default "issuer" }} | ||
{{- if eq .kind "Issuer" }} | ||
{{- if .namespace }} | ||
namespace: {{ .namespace }} | ||
{{- else if and (.Release) (.Release.Namespace) }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- else }} | ||
namespace: {{ "default" }} | ||
{{- end }} | ||
{{- end }} | ||
spec: | ||
{{- if and (.acme) (.acme.server) (.acme.email) }} | ||
acme: | ||
server: {{ .acme.server | default "https://acme-v02.api.letsencrypt.org/directory" }} | ||
email: {{ .acme.email }} | ||
privateKeySecretRef: | ||
{{- if and (.acme.privateKeySecretRef) (.acme.privateKeySecretRef.name) }} | ||
name: {{ .acme.privateKeySecretRef.name }} | ||
{{- else }} | ||
name: {{ .name }} | ||
{{- end }} | ||
solvers: | ||
{{- toYaml .acme.solvers | nindent 6 }} | ||
{{- else if and (.ca) (.ca.secretName) }} | ||
ca: | ||
secretName: {{ .ca.secretName }} | ||
{{- else }} | ||
selfSigned: {} | ||
{{- 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,26 @@ | ||
# Default values for cert-manager-issuers. | ||
|
||
# This expects list of Issuers to be created for cert manager to use to issue certificates | ||
issuers: | ||
- name: letsencrypt-staging | ||
# can be "Issuer" or "ClusterIssuer" | ||
kind: Issuer | ||
namespace: "default" # will be used only when the issuer's kind is "Issuer" | ||
# Issuer types can be "acme" - "ca" - or "selfSigned" (todo: more to be added) | ||
acme: | ||
# The ACME server URL e.g. https://acme-staging-v02.api.letsencrypt.org/directory | ||
server: "" | ||
# Email address used for ACME registration e.g. admin@example.com | ||
email: "" | ||
# optional: if not set, defaulted to the name of the Issuer | ||
privateKeySecretRef: | ||
name: "" | ||
solvers: [] | ||
# - http01: | ||
# ingress: | ||
# ingressClassName: nginx | ||
# certificate authority provided secret values (expected data: ca.crt - tls.key - tls.crt) | ||
ca: | ||
secretName: "" | ||
# self signed certificate | ||
selfSigned: {} |