Skip to content

Commit

Permalink
Add extraVolume support
Browse files Browse the repository at this point in the history
This allows to add extra volumes to be mounted to e.g. expose certificate secrets as files
  • Loading branch information
jan-tee authored and klausmeyer committed Oct 6, 2022
1 parent 6935b6a commit 2822830
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/docker-registry-browser/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
9 changes: 5 additions & 4 deletions charts/docker-registry-browser/RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

| Chart version | App version | Change description |
| :------------ | :------------ | :-------------------- |
| `0.1.0` | `1.4.0` | Initial chart version |
| `0.1.1` | `1.5.0` | Update app to `1.5.0` |
| Chart version | App version | Change description |
| :------------ | :------------ | :---------------------------- |
| `0.1.0` | `1.4.0` | Initial chart version |
| `0.1.1` | `1.5.0` | Update app to `1.5.0` |
| `0.1.2` | `1.5.0` | Add support for extra volumes |
8 changes: 8 additions & 0 deletions charts/docker-registry-browser/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ spec:
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.extraVolumeMounts }}
volumeMounts:
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- if .Values.extraVolumes }}
volumes:
{{- toYaml .Values.extraVolumes | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
16 changes: 16 additions & 0 deletions charts/docker-registry-browser/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,19 @@ tolerations: []
affinity: {}

environment: {}

extraVolumeMounts: []
## Additional volumeMounts to the registry container.
# - mountPath: /secret-data
# name: cloudfront-pem-secret
# readOnly: true

extraVolumes: []
## Additional volumes to the pod.
# - name: cloudfront-pem-secret
# secret:
# secretName: cloudfront-credentials
# items:
# - key: cloudfront.pem
# path: cloudfront.pem
# mode: 511

0 comments on commit 2822830

Please sign in to comment.