Skip to content

Commit

Permalink
Added dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Farcic committed Nov 30, 2019
1 parent 5157fe4 commit c114e01
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/go-demo-6/requirements.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dependencies:
- name: mongodb
alias: go-demo-6-db
version: 5.3.0
repository: https://kubernetes-charts.storage.googleapis.com
condition: db.enabled

2 changes: 2 additions & 0 deletions charts/go-demo-6/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: DB
value: {{ template "fullname" . }}-db
{{- range $pkey, $pval := .Values.env }}
- name: {{ $pkey }}
value: {{ quote $pval }}
Expand Down
4 changes: 4 additions & 0 deletions charts/go-demo-6/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ readinessProbe:
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
go-demo-6-db:
replicaSet:
enabled: true

0 comments on commit c114e01

Please sign in to comment.