-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align cert-manager with the design document
- Loading branch information
Tim Weidner
committed
Sep 17, 2019
1 parent
a7f9aca
commit 9e9a66e
Showing
4 changed files
with
47 additions
and
14 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 was deleted.
Oops, something went wrong.
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,42 @@ | ||
{{ if .Values.clusterissuer }} | ||
apiVersion: certmanager.k8s.io/v1alpha1 | ||
kind: Issuer | ||
metadata: | ||
name: kubernetes-root-issuer | ||
namespace: cert-manager | ||
annotations: | ||
"helm.sh/hook": "post-install" | ||
"helm.sh/hook-weight": "-4" | ||
spec: | ||
ca: | ||
secretName: kubernetes-root-ca | ||
--- | ||
apiVersion: certmanager.k8s.io/v1alpha1 | ||
kind: Certificate | ||
metadata: | ||
name: kubernetes-intermediate-ca | ||
annotations: | ||
"helm.sh/hook": "post-install" | ||
"helm.sh/hook-weight": "-3" | ||
spec: | ||
isCA: true | ||
commonName: cert-manager | ||
secretName: kubernetes-intermediate-ca | ||
issuerRef: | ||
name: kubernetes-root-issuer | ||
kind: Issuer | ||
# These are the default usages for reference | ||
usages: | ||
- "digital signature" | ||
- "key encipherment" | ||
--- | ||
apiVersion: certmanager.k8s.io/v1alpha1 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: {{ required "clusterissuer must have a name" .Values.clusterissuer.name }} | ||
annotations: | ||
"helm.sh/hook": "post-install" | ||
"helm.sh/hook-weight": "-2" | ||
spec: | ||
{{ required "clusterissuer must have a spec" .Values.clusterissuer.spec | toYaml | indent 4 }} | ||
{{ end }} |