Skip to content

Commit

Permalink
use env from kube secret instead of vault
Browse files Browse the repository at this point in the history
  • Loading branch information
avouacr committed Jan 13, 2022
1 parent fbb1a66 commit 4f9953a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion charts/shiny/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.2.0
version: 0.3.0

# 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
1 change: 0 additions & 1 deletion charts/shiny/templates/configmap-vault.yaml

This file was deleted.

6 changes: 2 additions & 4 deletions charts/shiny/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
envFrom:
{{- if .Values.vault.enabled }}
- configMapRef:
name: {{ include "library-chart.configMapNameVault" . }}
{{- end }}
- secretRef:
name: {{ .Values.externalPostgreSQL.credentialsSecretName }}
ports:
- name: http
containerPort: 3838
Expand Down
12 changes: 2 additions & 10 deletions charts/shiny/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@ tolerations: []

affinity: {}

vault:
# Specifies whether a config map should be created
externalPostgreSQL:
enabled: false
# The name of the configmap to use.
# If not set and create is true, a name is generated using the fullname template
configMapName: ""
token: ""
url: ""
mount: ""
secret: ""
directory: ""
credentialsSecretName: ""

0 comments on commit 4f9953a

Please sign in to comment.