Skip to content

Commit

Permalink
Merge pull request #87 from shashankm/ability_to_add_volumes
Browse files Browse the repository at this point in the history
ability to add volumes and volumeMounts in helm chart
  • Loading branch information
joe-elliott authored Jun 9, 2021
2 parents 930043c + 6754f72 commit 70c619b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/cert-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: cert-exporter
description: Monitors and exposes PKI information as Prometheus metrics

type: application
version: 2.7.1
version: 2.7.2
appVersion: v2.7.0
4 changes: 4 additions & 0 deletions helm/cert-exporter/templates/deployment/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ spec:
protocol: TCP
resources:
{{- toYaml .Values.certManagerDeployment.deployment.resources | nindent 12 }}
volumeMounts:
{{- toYaml .Values.certManagerDeployment.deployment.volumeMounts | nindent 12 }}
{{- with .Values.certManagerDeployment.deployment.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -55,3 +57,5 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- toYaml .Values.certManagerDeployment.deployment.volumes | nindent 8 }}
10 changes: 10 additions & 0 deletions helm/cert-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ certManagerDeployment:

affinity: {}

volumes: []
# - name: kubelet
# hostPath:
# path: /var/lib/kubelet
# type: Directory
volumeMounts: []
# - mountPath: /var/lib/kubelet/pki
# name: kubelet
# readOnly: true

service:
type: ClusterIP
port: 8080
Expand Down

0 comments on commit 70c619b

Please sign in to comment.