Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/incubator/hyperswitch-card-vault/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.1.5
version: 0.1.6

# 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
5 changes: 4 additions & 1 deletion charts/incubator/hyperswitch-card-vault/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# hyperswitch-card-vault

![Version: 0.1.5](https://img.shields.io/badge/Version-0.1.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square)
![Version: 0.1.6](https://img.shields.io/badge/Version-0.1.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square)

"application"
A Helm chart for creating Hyperswitch Card Vault
Expand Down Expand Up @@ -175,6 +175,9 @@ external:
| server.host | string | `"0.0.0.0"` | |
| server.image | string | `"juspaydotin/hyperswitch-card-vault:v0.6.5-dev"` | |
| server.imageRegistry | string | `"docker.juspay.io"` | |
| server.log.console.enabled | bool | `true` | Enable console logging |
| server.log.console.level | string | `"DEBUG"` | Log level for console logs (ERROR, WARN, INFO, DEBUG) |
| server.log.console.log_format | string | `"default"` | Log format for console logs (default or json) |
| server.pod.annotations | object | `{}` | |
| server.port | string | `"8080"` | |
| server.vault.url | string | `"http://127.0.0.1:8200"` | |
Expand Down
25 changes: 25 additions & 0 deletions charts/incubator/hyperswitch-card-vault/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,31 @@ LOCKER server port
{{- default "8080" .Values.server.port | quote }}
{{- end }}

{{/*
LOCKER log console enabled
*/}}
{{- define "locker.log.console.enabled" -}}
{{- if hasKey .Values.server.log.console "enabled" -}}
{{- .Values.server.log.console.enabled | toString | lower | quote }}
{{- else -}}
{{- "true" | quote }}
{{- end -}}
{{- end }}

{{/*
LOCKER log console level
*/}}
{{- define "locker.log.console.level" -}}
{{- default "DEBUG" .Values.server.log.console.level | quote }}
{{- end }}

{{/*
LOCKER log console format
*/}}
{{- define "locker.log.console.log_format" -}}
{{- default "default" .Values.server.log.console.log_format | quote }}
{{- end }}

{{- define "locker.externalKeyManager.url" -}}
{{- default "http://localhost:5000" .Values.server.externalKeyManager.url -}}
{{- end -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ spec:
containers:
- env:
- name: LOCKER__LOG__CONSOLE__ENABLED
value: "true"
value: {{ include "locker.log.console.enabled" . }}
- name: LOCKER__LOG__CONSOLE__LEVEL
value: DEBUG
value: {{ include "locker.log.console.level" . }}
- name: LOCKER__LOG__CONSOLE__LOG_FORMAT
value: default
value: {{ include "locker.log.console.log_format" . }}
- name: LOCKER__SERVER__HOST
value: {{ include "locker.server.host" . }}
- name: LOCKER__SERVER__PORT
Expand Down
9 changes: 9 additions & 0 deletions charts/incubator/hyperswitch-card-vault/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ server:
vault:
url: "http://127.0.0.1:8200"

log:
console:
# -- Enable console logging
enabled: true
# -- Log level for console logs (ERROR, WARN, INFO, DEBUG)
level: DEBUG
# -- Log format for console logs (default or json)
log_format: default

# Secrets configuration
secrets:
# Core secrets
Expand Down