Skip to content

Commit

Permalink
add config value for cryostat log level
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Oct 22, 2024
1 parent d4cf55d commit 23c1edb
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/cryostat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ helm install cryostat ./charts/cryostat
| `core.image.tag` | Tag for the main Cryostat container image | `4.0.0-snapshot` |
| `core.service.type` | Type of Service to create for the Cryostat application | `ClusterIP` |
| `core.service.httpPort` | Port number to expose on the Service for Cryostat's HTTP server | `8181` |
| `core.debug.log.level` | Log level for troubleshooting and debugging | `INFO` |
| `core.sslProxied` | Enables SSL Proxied Environment Variables, useful when you are offloading SSL/TLS at External Loadbalancer instead of Ingress | `false` |
| `core.ingress.enabled` | Whether to create an Ingress object for the Cryostat service | `false` |
| `core.ingress.className` | Ingress class name for the Cryostat application Ingress | `""` |
Expand Down
2 changes: 2 additions & 0 deletions charts/cryostat/templates/cryostat_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ spec:
env:
- name: QUARKUS_HTTP_HOST
value: localhost
- name: QUARKUS_LOG_LEVEL
value: {{ .Values.core.debug.log.level }}
- name: QUARKUS_HTTP_PORT
value: "8181"
- name: QUARKUS_HTTP_PROXY_PROXY_ADDRESS_FORWARDING
Expand Down
14 changes: 14 additions & 0 deletions charts/cryostat/tests/cryostat_deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ tests:
- equal:
path: spec.template.spec.containers[?(@.name=='cryostat')].env[?(@.name=='QUARKUS_HTTP_PORT')].value
value: "8181"
- equal:
path: spec.template.spec.containers[?(@.name=='cryostat')].env[?(@.name=='QUARKUS_LOG_LEVEL')].value
value: "INFO"
- equal:
path: spec.template.spec.containers[?(@.name=='cryostat')].env[?(@.name=='QUARKUS_HTTP_HOST')].value
value: "localhost"
Expand Down Expand Up @@ -175,6 +178,17 @@ tests:
cpu: 500m
memory: 384Mi

- it: should set log level
set:
core:
debug:
log:
level: TRACE
asserts:
- equal:
path: spec.template.spec.containers[?(@.name=='cryostat')].env[?(@.name=='QUARKUS_LOG_LEVEL')].value
value: TRACE

- it: should set environment variable if sidecar report generator is enabled
set:
reports:
Expand Down
15 changes: 15 additions & 0 deletions charts/cryostat/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@
}
}
},
"debug": {
"type": "object",
"properties": {
"log": {
"type": "object",
"properties": {
"level": {
"type": "string",
"description": "Log level for troubleshooting and debugging",
"default": "INFO"
}
}
}
}
},
"sslProxied": {
"type": "boolean",
"description": "Enables SSL Proxied Environment Variables, useful when you are offloading SSL/TLS at External Loadbalancer instead of Ingress",
Expand Down
4 changes: 4 additions & 0 deletions charts/cryostat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ core:
type: ClusterIP
## @param core.service.httpPort Port number to expose on the Service for Cryostat's HTTP server
httpPort: 8181
debug:
log:
## @param core.debug.log.level Log level for troubleshooting and debugging
level: INFO
## @param core.sslProxied Enables SSL Proxied Environment Variables, useful when you are offloading SSL/TLS at External Loadbalancer instead of Ingress
sslProxied: false
ingress:
Expand Down

0 comments on commit 23c1edb

Please sign in to comment.