Skip to content

Commit

Permalink
chore: add logging config via values
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspeen committed Jun 10, 2024
1 parent 21d16fb commit 2eac7ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/charts/apikeyman/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ keywords:
- security
sources:
- https://github.com/jaspeen/apikeyman
version: 0.1.6
version: 0.1.7
appVersion: "0.1.6"
6 changes: 6 additions & 0 deletions deploy/charts/apikeyman/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ spec:
args: {{- toYaml .Values.apikeyman.customArgs | nindent 12 }}
{{- else }}
args:
- --log
- {{ .Values.apikeyman.config.logLevel }}
- server
- --base-path
- {{ .Values.apikeyman.config.basePath | quote }}
- --addr
- "0.0.0.0:{{ .Values.apikeyman.config.port }}"
{{- end }}
Expand Down Expand Up @@ -181,6 +185,8 @@ spec:
name: {{ include "apikeyman.secretname" . }}
key: dsn
{{- end }}
- name: GIN_MODE
value: release
{{- with .Values.deployment.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions deploy/charts/apikeyman/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ apikeyman:
# -- resource requests and limits for the automigration initcontainer
resources: {}
config:
basePath: "/"
logLevel: "info"
port: 8080
dsn: "postgres://postgres:postgres@postgresql:5432/apikeyman?sslmode=disable"

Expand Down

0 comments on commit 2eac7ad

Please sign in to comment.