Skip to content

Commit

Permalink
feat: add option to force disabling telemetry on the UI (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 authored May 24, 2023
1 parent 7c2af7c commit 7f7f926
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/testkube-dashboard/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ spec:
value: "{{ .Values.apiServerEndpoint }}"
- name: REACT_APP_ROOT_ROUTE
value: "{{ .Values.ingress.path }}"
- name: REACT_APP_DISABLE_TELEMETRY
value: "{{ .Values.disableTelemetry }}"
{{- if .Values.extraEnvVars }}
{{ include "global.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 10 | trim }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions charts/testkube-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ fullnameOverride: ""
## Testkube API Server Endpoint
apiServerEndpoint: ""

## Force disabling telemetry
disableTelemetry: false

## Array with extra environment variables
## e.g:
## extraEnvVars:
Expand Down
1 change: 1 addition & 0 deletions charts/testkube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ kubectl label --overwrite crds scripts.tests.testkube.io app.kubernetes.io/manag
| testkube-dashboard | object | `{"affinity":{},"apiServerEndpoint":"","autoscaling":{"annotations":{},"enabled":false,"labels":{},"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80,"targetMemoryUtilizationPercentage":80},"enabled":true,"extraEnvVars":[],"fullnameOverride":"testkube-dashboard","image":{"digest":"","pullPolicy":"IfNotPresent","registry":"docker.io","repository":"kubeshop/testkube-dashboard"},"ingress":{"annotations":{},"enabled":false,"hosts":[],"labels":{},"path":"/","tls":[],"tlsenabled":false},"nodeSelector":{},"oauth2":{"annotations":{},"args":[],"enabled":false,"env":{"clientId":"","clientSecret":"","cookieSecret":"","cookieSecure":"false","githubOrg":"","redirectUrl":"http://testkube.example.com/oauth2/callback"},"extraEnvVars":[],"image":{"pullPolicy":"Always","registry":"quay.io","repository":"oauth2-proxy/oauth2-proxy","tag":"latest"},"ingress":{"labels":{}},"labels":{},"name":"oauth2-proxy","path":"/oauth2","podAnnotations":{},"podLabels":{},"port":4180,"serviceAnnotations":{},"serviceLabels":{},"serviceType":"ClusterIP"},"podAnnotations":{},"podLabels":{},"podSecurityContext":{},"replicaCount":1,"resources":{},"securityContext":{},"service":{"annotations":{},"port":8080,"type":"ClusterIP"},"serviceAccount":{"annotations":{},"create":true,"name":""},"testConnection":{"enabled":true,"resources":{},"tolerations":[{"effect":"NoSchedule","key":"kubernetes.io/arch","operator":"Equal","value":"arm64"}]},"tolerations":[{"effect":"NoSchedule","key":"kubernetes.io/arch","operator":"Equal","value":"arm64"}]}` | Testkube Dashboard parameters |
| testkube-dashboard.affinity | object | `{}` | Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set |
| testkube-dashboard.apiServerEndpoint | string | `""` | Testkube API Server endpoint |
| testkube-dashboard.disableTelemetry | bool | `false` | Force disabling telemetry on the UI |
| testkube-dashboard.autoscaling.annotations | object | `{}` | Specific autoscaling annotations |
| testkube-dashboard.autoscaling.enabled | bool | `false` | Enable autoscaling for Testkube dashboard deployment |
| testkube-dashboard.autoscaling.labels | object | `{}` | Specific autoscaling labels |
Expand Down
1 change: 1 addition & 0 deletions charts/testkube/values-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ testkube-dashboard:
- dashboard.testkube.io
secretName: testkube-demo-cert-secret
apiServerEndpoint: "demo.testkube.io/results" #get the address of the endpoint or set it using helm
disableTelemetry: true
oauth2:
enabled: false
name: oauth2-proxy
Expand Down
1 change: 1 addition & 0 deletions charts/testkube/values-develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ testkube-dashboard:
- dev.testkube.io
secretName: testkube-prod-cert-secret
apiServerEndpoint: "dev.testkube.io/results" #get the address of the endpoint or set it using helm
disableTelemetry: true
oauth2:
enabled: false
name: oauth2-proxy
Expand Down
1 change: 1 addition & 0 deletions charts/testkube/values-pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ testkube-dashboard:
- beta.testkube.io
secretName: testkube-prod-cert-secret
apiServerEndpoint: "beta.testkube.io/results" #get the address of the endpoint or set it using helm
disableTelemetry: true
oauth2:
enabled: false
name: oauth2-proxy
Expand Down
1 change: 1 addition & 0 deletions charts/testkube/values-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ testkube-dashboard:
- integration.testkube.io
secretName: testkube-demo-cert-secret
apiServerEndpoint: "integration.testkube.io/results" #get the address of the endpoint or set it using helm
disableTelemetry: true
oauth2:
enabled: false
name: oauth2-proxy
Expand Down
3 changes: 3 additions & 0 deletions charts/testkube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,9 @@ testkube-dashboard:
# -- Testkube API Server endpoint
apiServerEndpoint: "" # get the address of the endpoint or set it using helm

# -- Force disabling telemetry on the UI
disableTelemetry: false

# Oauth parameters
oauth2:
# -- Use oauth
Expand Down

0 comments on commit 7f7f926

Please sign in to comment.