Skip to content

Commit

Permalink
Added configmap and secret to deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaswilde committed Dec 2, 2020
1 parent 76f2b4e commit b399e56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/booksonic/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v2
appVersion: 1.2
version: 0.1.3
version: 0.1.4
name: booksonic
description: The selfhosted audiobook server
type: application
Expand Down
2 changes: 1 addition & 1 deletion charts/booksonic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The selfhosted audiobook server

![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.2](https://img.shields.io/badge/AppVersion-1.2-informational?style=flat-square)
![Version: 0.1.4](https://img.shields.io/badge/Version-0.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.2](https://img.shields.io/badge/AppVersion-1.2-informational?style=flat-square)

## TL;DR
```console
Expand Down
10 changes: 10 additions & 0 deletions charts/booksonic/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.config }}
envFrom:
- configMapRef:
name: {{ include "booksonic.fullname" . }}
{{- end }}
{{- if .Values.secret }}
envFrom:
- secretRef:
name: {{ include "booksonic.fullname" . }}
{{- end }}
volumeMounts:
- name: config
mountPath: /config
Expand Down

0 comments on commit b399e56

Please sign in to comment.