feat(fe2 helm chart): allows nodejs inspect flag to be enabled (#3770)

This commit is contained in:
Iain Sproat
2025-01-07 20:35:22 +00:00
committed by GitHub
parent 0fa4e2f7ab
commit 17c6f71ba5
3 changed files with 26 additions and 0 deletions
@@ -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
@@ -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.",
+5
View File
@@ -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