Add labels via central lib to cert-manager

This commit is contained in:
Stefan Reimer 2020-05-19 11:57:24 +01:00
parent 32dcca79a9
commit fe60e8f362
3 changed files with 14 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: kubezero-cert-manager
description: KubeZero Umbrella Chart for cert-manager
type: application
version: 0.3.2
version: 0.3.3
home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/logo_small.png
keywords:
@ -11,6 +11,9 @@ keywords:
maintainers:
- name: Quarky9
dependencies:
- name: kubezero-lib
version: ">= 0.1.1"
repository: https://zero-down-time.github.io/kubezero/
- name: cert-manager
version: 0.15.0
repository: https://charts.jetstack.io

View File

@ -7,6 +7,8 @@ kind: Issuer
metadata:
name: kubezero-selfsigning-issuer
namespace: kube-system
labels:
{{ include "kubezero-lib.labels" . | indent 4 }}
spec:
selfSigned: {}
---
@ -15,6 +17,8 @@ kind: Certificate
metadata:
name: kubezero-local-ca
namespace: kube-system
labels:
{{ include "kubezero-lib.labels" . | indent 4 }}
spec:
secretName: kubezero-ca-tls
commonName: "kubezero-local-ca"
@ -31,6 +35,8 @@ kind: Secret
metadata:
name: kubezero-ca-tls
namespace: kube-system
labels:
{{ include "kubezero-lib.labels" . | indent 4 }}
data:
tls.crt: {{ .Values.localCA.ca.crt | b64enc }}
tls.key: {{ .Values.localCA.ca.key | b64enc }}
@ -42,6 +48,8 @@ kind: Issuer
metadata:
name: kubezero-local-ca-issuer
namespace: kube-system
labels:
{{ include "kubezero-lib.labels" . | indent 4 }}
spec:
ca:
secretName: kubezero-ca-tls

View File

@ -3,6 +3,8 @@ apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: {{ .Values.clusterIssuer.name }}
labels:
{{ include "kubezero-lib.labels" . | indent 4 }}
spec:
acme:
server: {{ .Values.clusterIssuer.server }}