Skip to content

Commit

Permalink
feat(ci): update envs
Browse files Browse the repository at this point in the history
  • Loading branch information
pehlicd committed Mar 23, 2024
1 parent 83a5a1d commit d34a5bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
8 changes: 4 additions & 4 deletions charts/keep/templates/keep-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{{- if .Values.backend.databasePasswordFromSecret.enabled }}
- name: DATABASE_PASSWORD
{{- if .Values.backend.databaseConnectionStringFromSecret.enabled }}
- name: DATABASE_CONNECTION_STRING
valueFrom:
secretKeyRef:
name: {{ .Values.backend.databasePasswordFromSecret.secretName }}
key: {{ .Values.backend.databasePasswordFromSecret.secretKey }}
name: {{ .Values.backend.databaseConnectionStringFromSecret.secretName }}
key: {{ .Values.backend.databaseConnectionStringFromSecret.secretKey }}
{{- end }}
volumeMounts:
- name: state-volume
Expand Down
16 changes: 5 additions & 11 deletions charts/keep/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,21 @@ backend:
# if true, wait for the database to be ready before starting the API
# if you use external database, you can set this to false
waitForDatabase: true
# if true, the database password will be read from a secret
# if it is false, the DATABASE_PASSWORD value can be set directly
databasePasswordFromSecret:
# if true, the database connection string will be read from a secret
# if it is false, the DATABASE_CONNECTION_STRING value can be set directly
databaseConnectionStringFromSecret:
enabled: false
secretName: ""
secretKey: ""
env:
- name: DATABASE_CONNECTION_STRING
value: mysql+pymysql://[email protected]:3306/keep
- name: SECRET_MANAGER_TYPE
value: k8s
- name: PORT
value: "8080"
- name: SECRET_MANAGER_DIRECTORY
value: /state
- name: DATABASE_HOST
value: keep-database
- name: DATABASE_PORT
value: "3306"
- name: DATABASE_NAME
value: keep
- name: DATABASE_USER
value: root
- name: PUSHER_APP_ID
value: 1
- name: PUSHER_APP_KEY
Expand Down

0 comments on commit d34a5bf

Please sign in to comment.