Skip to content

Commit

Permalink
fix: allow enablement of pprof in service (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
strantalis authored Jul 16, 2024
1 parent fd5164a commit 060f9f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ realms:
| server.cors.maxage | int | `3600` | The max age |
| server.cryptoProvider.standard.keys | list | `[{"alg":"rsa:2048","cert":"/etc/platform/kas/kas-cert.pem","kid":"r1","private":"/etc/platform/kas/kas-private.pem"},{"alg":"ec:secp256r1","cert":"/etc/platform/kas/kas-ec-cert.pem","kid":"e1","private":"/etc/platform/kas/kas-ec-private.pem"}]` | List of key pairs to load into the platform. (Currently only leveraged by KAS) |
| server.disableHealthChecks | bool | `false` | Disable Kubernetes Health Checks. (Useful for debugging) |
| server.enable_pprof | bool | `false` | Enable go pprof |
| server.grpc.reflectionEnabled | bool | `true` | Enables grpc reflection (https://github.com/grpc/grpc/blob/master/doc/server-reflection.md) |
| server.port | int | `9000` | The server port |
| server.tls.additionalTrustedCerts | list | `[]` | Additional trusted certificates. These can be loaded following [projected volume](https://kubernetes.io/docs/concepts/storage/projected-volumes/) |
Expand Down
1 change: 1 addition & 0 deletions charts/platform/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ data:
{{- end }}
server:
port: {{ .Values.server.port | quote }}
enable_pprof: {{ .Values.server.enable_pprof }}
cors:
enabled: {{ .Values.server.cors.enabled }}
allowedorigins:
Expand Down
2 changes: 2 additions & 0 deletions charts/platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ db:
server:
# -- The server port
port: 9000
# -- Enable go pprof
enable_pprof: false
cors:
# -- Enable CORS (default: false)
enabled: false
Expand Down

0 comments on commit 060f9f6

Please sign in to comment.