Skip to content

Commit

Permalink
fix(chart): user creation
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Jul 8, 2022
1 parent b85978f commit 31775ee
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/oada/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maintainers:
- name: awlayton
email: alex@layton.in
type: application
version: 1.2.3
version: 1.2.4
appVersion: '3.4.1'
annotations:
artifacthub.io/recommendations: |
Expand Down
25 changes: 25 additions & 0 deletions charts/oada/templates/users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ spec:
envFrom:
- configMapRef:
name: {{ $.Chart.Name }}-configmap-{{ $.Release.Name }}
env:
- name: ARANGODB_USERNAME
valueFrom:
secretKeyRef:
name: {{ include "oada.arango.rootPassword" $ }}
key: username
optional: {{ $.Values.global.development }}
- name: ARANGODB_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "oada.arango.rootPassword" $ }}
key: password
optional: {{ $.Values.global.development }}
image: oada/users:{{ $tag }}
#imagePullPolicy: {{ $.Values.global.development | ternary "Always" "IfNotPresent" }}
command: ["/usr/bin/dumb-init", "--rewrite", "15:2", "--", "/bin/sh"]
Expand All @@ -77,6 +90,18 @@ spec:
secretKeyRef:
name: {{ $secretName }}
key: token
- name: ARANGODB_USERNAME
valueFrom:
secretKeyRef:
name: {{ include "oada.arango.rootPassword" $ }}
key: username
optional: {{ $.Values.global.development }}
- name: ARANGODB_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "oada.arango.rootPassword" $ }}
key: password
optional: {{ $.Values.global.development }}
image: oada/users:{{ $tag }}
#imagePullPolicy: {{ $.Values.global.development | ternary "Always" "IfNotPresent" }}
command: ["/usr/bin/dumb-init", "--rewrite", "15:2", "--", "/bin/sh"]
Expand Down

0 comments on commit 31775ee

Please sign in to comment.