Skip to content

Commit

Permalink
feat: add support for extra volumes and extra volume mounts (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddycharly authored Nov 23, 2021
1 parent 73cbd59 commit af98bae
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/chartmuseum/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Host your own Helm Chart Repository
name: chartmuseum
version: 3.3.0
version: 3.4.0
appVersion: 0.13.1
home: https://github.com/helm/chartmuseum
icon: https://raw.githubusercontent.com/chartmuseum/charts/main/logo.jpg
Expand Down
2 changes: 2 additions & 0 deletions src/chartmuseum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ their default values. See values.yaml for all available options.
| `serviceMonitor.timeout` | Scrape request timeout. If not set, the Prometheus default timeout is used | `<nil>` |
| `deployment.annotations` | Additional annotations for deployment | `{}` |
| `deployment.labels` | Additional labels for deployment | `{}` |
| `deployment.extraVolumes` | Additional volumes for deployment | `[]` |
| `deployment.extraVolumeMounts` | Additional volumes to mount in container for deployment | `[]` |
| `podAnnotations` | Annotations for pods | `{}` |
| `ingress.enabled` | Enable ingress controller resource | `false` |
| `ingress.annotations` | Ingress annotations | `{}` |
Expand Down
6 changes: 6 additions & 0 deletions src/chartmuseum/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ spec:
port: http
{{ toYaml .Values.probes.readiness | indent 10 }}
volumeMounts:
{{- if .Values.deployment.extraVolumeMounts }}
{{- toYaml .Values.deployment.extraVolumeMounts | nindent 8 }}
{{- end }}
{{- if eq .Values.env.open.STORAGE "local" }}
- mountPath: {{ .Values.persistence.path }}
name: storage-volume
Expand Down Expand Up @@ -166,6 +169,9 @@ spec:
serviceAccountName: {{ include "chartmuseum.serviceAccountName" . }}
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
volumes:
{{- if .Values.deployment.extraVolumes }}
{{- toYaml .Values.deployment.extraVolumes | nindent 6 }}
{{- end }}
- name: storage-volume
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
Expand Down
4 changes: 4 additions & 0 deletions src/chartmuseum/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ deployment:
# name: value
labels: {}
# name: value
# additional volumes
extraVolumes: []
# additional volumes to mount
extraVolumeMounts: []

## Pod annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
Expand Down

0 comments on commit af98bae

Please sign in to comment.