Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/cert-manager-webhook-etcd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: cert-manager-webhook-etcd
description: A Helm chart for cert-manager webhook with etcd DNS provider
type: application
version: 0.1.0
version: 0.2.0
appVersion: "1.0.0"
keywords:
- cert-manager
Expand Down
3 changes: 3 additions & 0 deletions charts/cert-manager-webhook-etcd/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ helm.sh/chart: {{ include "cert-manager-webhook-etcd.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.commonLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}

{{/*
Expand Down
3 changes: 3 additions & 0 deletions charts/cert-manager-webhook-etcd/templates/apiservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
annotations:
{{- with .Values.commonAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
cert-manager.io/inject-ca-from: "{{ .Release.Namespace }}/{{ include "cert-manager-webhook-etcd.servingCertificate" . }}"
spec:
group: {{ .Values.groupName }}
Expand Down
7 changes: 7 additions & 0 deletions charts/cert-manager-webhook-etcd/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.webhook.replicaCount }}
selector:
Expand All @@ -18,6 +22,9 @@ spec:
{{- end }}
labels:
{{- include "cert-manager-webhook-etcd.selectorLabels" . | nindent 8 }}
{{- with .Values.commonLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
16 changes: 16 additions & 0 deletions charts/cert-manager-webhook-etcd/templates/pki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selfSigned: {}
---
Expand All @@ -18,6 +22,10 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
secretName: {{ include "cert-manager-webhook-etcd.rootCACertificate" . }}
duration: {{ .Values.tls.caDuration }}
Expand All @@ -34,6 +42,10 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ca:
secretName: {{ include "cert-manager-webhook-etcd.rootCACertificate" . }}
Expand All @@ -46,6 +58,10 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
secretName: {{ include "cert-manager-webhook-etcd.servingCertificate" . }}
duration: {{ .Values.tls.duration }}
Expand Down
24 changes: 24 additions & 0 deletions charts/cert-manager-webhook-etcd/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: {{ include "cert-manager-webhook-etcd.fullname" . }}
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- apiGroups:
- ""
Expand All @@ -20,6 +24,10 @@ metadata:
name: {{ include "cert-manager-webhook-etcd.fullname" . }}
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -38,6 +46,10 @@ metadata:
namespace: kube-system
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand All @@ -53,6 +65,10 @@ metadata:
name: {{ include "cert-manager-webhook-etcd.fullname" . }}:auth-delegator
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -69,6 +85,10 @@ metadata:
name: {{ include "cert-manager-webhook-etcd.fullname" . }}:domain-solver
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- apiGroups:
- {{ .Values.groupName }}
Expand All @@ -83,6 +103,10 @@ metadata:
name: {{ include "cert-manager-webhook-etcd.fullname" . }}:domain-solver
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
4 changes: 4 additions & 0 deletions charts/cert-manager-webhook-etcd/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "cert-manager-webhook-etcd.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
{{- with merge (deepCopy (.Values.serviceAccount.annotations | default dict)) .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
Expand Down
6 changes: 6 additions & 0 deletions charts/cert-manager-webhook-etcd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# Labels to add to all deployed resources (including the webhook pods)
commonLabels: {}

# Annotations to add to all deployed resources (use podAnnotations for the pods)
commonAnnotations: {}

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand Down
Loading