Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/adam/ifc-dotnet' into adam/ifc-d…
Browse files Browse the repository at this point in the history
…otnet
  • Loading branch information
adamhathcock committed Nov 28, 2024
2 parents e2ddcf4 + a3349c5 commit 2c29cf5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/shared/src/environment/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ const parseFeatureFlags = () => {
FF_WORKSPACES_MULTI_REGION_ENABLED: {
schema: z.boolean(),
defaults: { production: false, _: false }
},
// Toggles IFC parsing with experimental .Net parser
FF_FILEIMPORT_IFC_DOTNET_ENABLED: {
schema: z.boolean(),
defaults: { production: false, _: false }
}
})

Expand All @@ -74,6 +79,7 @@ export function getFeatureFlags(): {
FF_GATEKEEPER_MODULE_ENABLED: boolean
FF_BILLING_INTEGRATION_ENABLED: boolean
FF_WORKSPACES_MULTI_REGION_ENABLED: boolean
FF_FILEIMPORT_IFC_DOTNET_ENABLED: boolean
} {
if (!parsedFlags) parsedFlags = parseFeatureFlags()
return parsedFlags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
periodSeconds: 60
exec:
command:
- /nodejs/bin/node
- /usr/bin/node
- -e
- process.exit(Date.now() - require('fs').readFileSync('/tmp/last_successful_query', 'utf8') > 25 * 60 * 1000)

Expand All @@ -59,6 +59,8 @@ spec:
volumeMounts:
- mountPath: /tmp
name: tmp
- mountPath: /.config
name: dotconfig
{{- if .Values.db.useCertificate }}
- name: postgres-certificate
mountPath: /postgres-certificate
Expand Down Expand Up @@ -97,11 +99,13 @@ spec:
{{- if .Values.featureFlags.workspacesMultiRegionEnabled }}
- name: FF_WORKSPACES_MULTI_REGION_ENABLED
value: {{ .Values.featureFlags.workspacesMultiRegionEnabled | quote }}
- name: FF_FILEIMPORT_IFC_DOTNET_ENABLED
value: {{ .Values.featureFlags.fileImportIFCDotNetEnabled | quote }}
- name: MULTI_REGION_CONFIG_PATH
value: "/multi-region-config/multi-region-config.json"
{{- end }}
{{- if .Values.featureFlags.fileImportIFCDotNetEnabled }}
- name: FF_FILEIMPORT_IFC_DOTNET_ENABLED
value: {{ .Values.featureFlags.fileImportIFCDotNetEnabled | quote }}
{{- end }}
{{- if .Values.fileimport_service.affinity }}
affinity: {{- include "speckle.renderTpl" (dict "value" .Values.fileimport_service.affinity "context" $) | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -132,6 +136,8 @@ spec:
volumes:
- name: tmp
emptyDir: {}
- name: dotconfig
emptyDir: {}
{{- if .Values.db.useCertificate }}
- name: postgres-certificate
configMap:
Expand Down

0 comments on commit 2c29cf5

Please sign in to comment.