From 2549f93b1a494d9d037fc680274c548fdd0d6d05 Mon Sep 17 00:00:00 2001 From: CI Date: Wed, 4 Sep 2024 12:22:40 +0000 Subject: [PATCH] CircleCI commit for version '2.21.1-alpha.172253' --- charts/speckle-server/Chart.yaml | 4 ++-- .../templates/preview_service/deployment.yml | 12 +++++++++++- charts/speckle-server/values.schema.json | 15 +++++++++++++++ charts/speckle-server/values.yaml | 7 ++++++- 4 files changed, 34 insertions(+), 4 deletions(-) diff --git a/charts/speckle-server/Chart.yaml b/charts/speckle-server/Chart.yaml index 7c77825c..ce923b48 100644 --- a/charts/speckle-server/Chart.yaml +++ b/charts/speckle-server/Chart.yaml @@ -5,7 +5,7 @@ apiVersion: v2 # It is recommended to use it with quotes. # Set by the build process to the correct value -appVersion: '2.21.1-alpha.172163' +appVersion: '2.21.1-alpha.172253' description: Speckle Server home: 'https://speckle.systems/' icon: 'https://speckle.xyz/logo.svg' @@ -21,4 +21,4 @@ type: application # Versions are expected to follow Semantic Versioning (https://semver.org/) # Set by the build process to the correct value -version: 2.21.1-alpha.172163 +version: 2.21.1-alpha.172253 diff --git a/charts/speckle-server/templates/preview_service/deployment.yml b/charts/speckle-server/templates/preview_service/deployment.yml index 04dbda5e..76adcf4c 100644 --- a/charts/speckle-server/templates/preview_service/deployment.yml +++ b/charts/speckle-server/templates/preview_service/deployment.yml @@ -35,7 +35,7 @@ spec: command: - node - -e - - process.exit(Date.now() - require('fs').readFileSync('/tmp/last_successful_query', 'utf8') > 3600 * 1000) + - {{ printf "process.exit(Date.now() - require('fs').readFileSync('/tmp/last_successful_query', 'utf8') > %d)" .Values.preview_service.puppeteer.timeoutMilliseconds }} resources: requests: @@ -84,6 +84,16 @@ spec: value: "/postgres-certificate/ca-certificate.crt" {{- end }} + {{- if .Values.preview_service.puppeteer.userDataDirectory }} + - name: USER_DATA_DIR + value: {{ .Values.preview_service.puppeteer.userDataDirectory | quote }} + {{- end }} + + {{- if .Values.preview_service.puppeteer.timeoutMilliseconds }} + - name: PREVIEW_TIMEOUT + value: {{ .Values.preview_service.puppeteer.timeoutMilliseconds | quote }} + {{- end }} + {{- if .Values.preview_service.affinity }} affinity: {{- include "speckle.renderTpl" (dict "value" .Values.preview_service.affinity "context" $) | nindent 8 }} {{- end }} diff --git a/charts/speckle-server/values.schema.json b/charts/speckle-server/values.schema.json index ebe8df93..d3651410 100644 --- a/charts/speckle-server/values.schema.json +++ b/charts/speckle-server/values.schema.json @@ -1666,6 +1666,21 @@ } } }, + "puppeteer": { + "type": "object", + "properties": { + "userDataDirectory": { + "type": "string", + "description": "The path to the user data directory. If not set, defaults to '/tmp/puppeteer'. This is mounted in the deployment as a volume with read-write access.", + "default": "" + }, + "timeoutMilliseconds": { + "type": "string", + "description": "The timeout in milliseconds for the Puppeteer service.", + "default": "3600000" + } + } + }, "requests": { "type": "object", "properties": { diff --git a/charts/speckle-server/values.yaml b/charts/speckle-server/values.yaml index fece4811..cac0d701 100644 --- a/charts/speckle-server/values.yaml +++ b/charts/speckle-server/values.yaml @@ -71,7 +71,7 @@ ingress: ## ## @param docker_image_tag Speckle is published as a Docker Image. The version of the image which will be deployed is specified by this tag. ## -docker_image_tag: '2.21.1-alpha.172163' +docker_image_tag: '2.21.1-alpha.172253' ## @param imagePullPolicy Determines the conditions when the Docker Images for Speckle should be pulled from the Image registry. ## ref: https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy ## @@ -1006,6 +1006,11 @@ preview_service: monitoring: ## @param preview_service.monitoring.metricsPort The port on which the metrics server will be exposed. metricsPort: '9094' + puppeteer: + ## @param preview_service.puppeteer.userDataDirectory The path to the user data directory. If not set, defaults to '/tmp/puppeteer'. This is mounted in the deployment as a volume with read-write access. + userDataDirectory: '' + ## @param preview_service.puppeteer.timeoutMilliseconds The timeout in milliseconds for the Puppeteer service. + timeoutMilliseconds: '3600000' requests: ## @param preview_service.requests.cpu The CPU that should be available on a node when scheduling this pod. ## ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/