diff --git a/utils/helm/speckle-server/templates/frontend_2/deployment.yml b/utils/helm/speckle-server/templates/frontend_2/deployment.yml index 00809b8ba..d43fbf095 100644 --- a/utils/helm/speckle-server/templates/frontend_2/deployment.yml +++ b/utils/helm/speckle-server/templates/frontend_2/deployment.yml @@ -22,6 +22,12 @@ spec: - name: main image: {{ default (printf "speckle/speckle-frontend-2:%s" .Values.docker_image_tag) .Values.frontend_2.image }} imagePullPolicy: {{ .Values.imagePullPolicy }} + args: #overwrites the Dockerfile CMD statement + - "/nodejs/bin/node" + {{- if .Values.frontend_2.inspect.enabled }} + - {{ printf "--inspect=%s" .Values.frontend_2.inspect.port }} + {{- end }} + - "./server/index.mjs" ports: - name: www diff --git a/utils/helm/speckle-server/values.schema.json b/utils/helm/speckle-server/values.schema.json index ecba2e8c9..55f5d6934 100644 --- a/utils/helm/speckle-server/values.schema.json +++ b/utils/helm/speckle-server/values.schema.json @@ -1774,6 +1774,21 @@ "description": "If enabled, will output logs in a human-readable format. Otherwise, logs will be output in JSON format.", "default": false }, + "inspect": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "If enabled, indicates that the Speckle FE2 should be deployed with the nodejs inspect feature enabled", + "default": false + }, + "port": { + "type": "string", + "description": "The port on which the nodejs inspect feature should be exposed", + "default": "7000" + } + } + }, "enabled": { "type": "boolean", "description": "Feature flag to enable running the new web application frontend.", diff --git a/utils/helm/speckle-server/values.yaml b/utils/helm/speckle-server/values.yaml index 44a79e99a..8922b5b00 100644 --- a/utils/helm/speckle-server/values.yaml +++ b/utils/helm/speckle-server/values.yaml @@ -1062,6 +1062,11 @@ frontend_2: ## @param frontend_2.logPretty If enabled, will output logs in a human-readable format. Otherwise, logs will be output in JSON format. ## logPretty: false + inspect: + ## @param frontend_2.inspect.enabled If enabled, indicates that the Speckle FE2 should be deployed with the nodejs inspect feature enabled + enabled: false + ## @param frontend_2.inspect.port The port on which the nodejs inspect feature should be exposed + port: '7000' ## @param frontend_2.enabled Feature flag to enable running the new web application frontend. ## enabled: true