Skip to content

Commit

Permalink
testkube-enterprise: add parameters for enabling debug logs and keepa…
Browse files Browse the repository at this point in the history
…live
  • Loading branch information
dejanzele committed Mar 6, 2024
1 parent 0edfc4d commit ab9b954
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/testkube-cloud-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ spec:
- name: ENTERPRISE_LICENSE_FILE
value: "{{ .Values.global.enterpriseLicenseFile }}"
{{- end }}
{{- if .Values.api.debug.enableHttp2Logs }}
- name: GODEBUG
value: http2debug=2
{{- end }}
{{- if .Values.api.debug.enableGrpcServerLogs }}
- name: ENABLE_GRPC_VERBOSE_LOGGING
value: "true"
{{- end }}
{{- if .Values.api.agent.keepAlive }}
- name: ENABLE_GRPC_KEEP_ALIVE
value: "true"
{{- end }}
{{- if .Values.ai.secretRef }}
- name: OPENAI_API_KEY
valueFrom:
Expand Down
7 changes: 7 additions & 0 deletions charts/testkube-cloud-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ payments:
# -- Payments portal configuration ID (currently only Stripe is supported)
portalConfigurationId: ""
api:
debug:
# -- Toggle whether to enable debug logs by setting the GODEBUG=http2debug=2
enableHttp2Logs: false
# -- Toggle whether to enable gRPC server logs
enableGrpcServerLogs: false
migrations:
# -- Toggle whether to apply migrations for MongoDB
enabled: false
Expand Down Expand Up @@ -173,6 +178,8 @@ api:
host: ""
# -- Agent port
port: "443"
# -- Toggle whether to enable agent grpc keepalive pings
keepAlive: false
oauth:
# -- OAuth secret ref for OAuth configuration (secret must contain keys: OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, OAUTH_ISSUER_URL, OAUTH_REDIRECT_URI) (default is `testkube-cloud-oauth-secret`)
secretRef: ""
Expand Down
7 changes: 7 additions & 0 deletions charts/testkube-enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ testkube-cloud-api:
ai:
secretRef: ""
api:
debug:
# -- Toggle whether to enable debug logs by setting the GODEBUG=http2debug=2
enableHttp2Logs: false
# -- Toggle whether to enable gRPC server logs
enableGrpcServerLogs: false
# -- Configure which invitation mode to use (email|auto-accept): email uses SMTP protocol to send email invites and auto-accept immediately adds them
inviteMode: email
smtp:
Expand Down Expand Up @@ -202,6 +207,8 @@ testkube-cloud-api:
host: ""
# -- Agent port - used for building agent install commands
port: 443
# -- Toggle whether to enable agent grpc keepalive pings
keepAlive: false
oauth:
# -- OAuth secret ref for OAuth configuration (secret must contain keys: OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, OAUTH_ISSUER_URL, OAUTH_REDIRECT_URI) (default is `testkube-cloud-oauth-secret`)
secretRef: ""
Expand Down

0 comments on commit ab9b954

Please sign in to comment.