Skip to content

Commit

Permalink
Accept "INACTIVITY_TIMEOUT_SECONDS" environment variable (#68)
Browse files Browse the repository at this point in the history
* Accept INACTIVITY_TIMEOUT_SECONDS environment variable
  • Loading branch information
jbard1 authored Sep 8, 2021
1 parent de08b58 commit d7fd6e4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/sorry-cypress/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: sorry-cypress
description: A Helm chart for Sorry Cypress
type: application
version: 1.0.6
version: 1.0.7
appVersion: 1.1.0
home: https://sorry-cypress.dev/
sources:
Expand Down
1 change: 1 addition & 0 deletions charts/sorry-cypress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ https://sorry-cypress.dev/director/configuration
| `director.environmentVariables.dashboardUrl` | The "Run URL" in the Cypress client | `""` |
| `director.environmentVariables.executionDriver` | Set the execution driver. Valid options are `"../execution/in-memory"` and `"../execution/mongo/driver"` | `"../execution/in-memory"` |
| `director.environmentVariables.screenshotsDriver` | Set the screenshots driver. Valid options are `"../screenshots/dummy.driver"` and `"../screenshots/s3.driver"` | `"../screenshots/dummy.driver"` |
| `director.environmentVariables.inactivityTimeoutSeconds` | Set the timeout of all test runs under your projects. | `180s` |
| `director.podAnnotations` | Set annotations for pods | `{}` |
| `director.podLabels` | Set additional labels for pods | `{}` |
| `director.affinity` | Set affinity for pods | `{}` |
Expand Down
2 changes: 2 additions & 0 deletions charts/sorry-cypress/templates/deployment-director.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ spec:
value: "true"
{{- end }}
{{- end }}
- name: INACTIVITY_TIMEOUT_SECONDS
value: {{ .Values.director.environmentVariables.inactivityTimeoutSeconds }}
image: "{{ .Values.director.image.repository }}:{{ .Values.director.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.director.image.pullPolicy }}
name: {{ include "sorry-cypress-helm.fullname" . }}-director
Expand Down
5 changes: 4 additions & 1 deletion charts/sorry-cypress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,12 @@ director:
# "../screenshots/s3.driver"
screenshotsDriver: "../screenshots/dummy.driver"

# https://sorry-cypress.dev/director/configuration
# https://docs.sorry-cypress.dev/configuration/director-configuration
allowedKeys: ""

# Test runs timeouts
inactivityTimeoutSeconds: ""

# Set annotations for pods
podAnnotations: {}

Expand Down

0 comments on commit d7fd6e4

Please sign in to comment.