Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c9a89d3
feat: infrastructure and boilerplate deps upgrade
roicohen326 Mar 12, 2026
15800ea
style: fix formatting in gdalUtilities.spec.ts
roicohen326 Mar 12, 2026
cf24a33
fix(helm): remove redundant telemetry helper values
roicohen326 Mar 18, 2026
2a360cc
fix: migrate IConfig to ConfigType
roicohen326 Mar 19, 2026
4026f27
chore: minor whitespace
roicohen326 Mar 19, 2026
c9d7dfe
chore: merge master to resolve conflicts
roicohen326 Mar 19, 2026
020ac1e
fix: regenerate package-lock.json for npm ci compatibility
roicohen326 Mar 19, 2026
20b7247
fix: lint errors
roicohen326 Mar 23, 2026
255b8f5
test: add polygon parts manager 404 and 500 coverage tests
eyalr1100 Mar 25, 2026
2618c5e
fix: address PR review comments
roicohen326 May 6, 2026
692772f
chore: merge master into branch
roicohen326 May 6, 2026
136b329
chore: regenerate package-lock.json
roicohen326 May 6, 2026
11c712a
fix: upgrade js logger to v5
roicohen326 May 10, 2026
2f60e4d
chore: add .diff to gitignore
roicohen326 May 10, 2026
7018cfd
fix: use err shorthand in logger calls, fix lint warnings, helm confi…
roicohen326 May 11, 2026
4743f7c
fix: revert booleanContains to default import
roicohen326 May 11, 2026
a3b168f
style: fixed eslint errors & conventions
CL-SHLOMIKONCHA Jun 17, 2026
5d4e257
style: fixed eslint errors & conventions
CL-SHLOMIKONCHA Jun 17, 2026
63b35fe
Merge branch 'master' of https://github.com/MapColonies/ingestion-tri…
CL-SHLOMIKONCHA Jun 17, 2026
4d4df43
test: fix geo validator unit tests
CL-SHLOMIKONCHA Jun 17, 2026
e2cf556
helm: added support for opentelemetry logger options
CL-SHLOMIKONCHA Jun 18, 2026
bf889b5
style: fixed lint error
CL-SHLOMIKONCHA Jun 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ commitlint.config.json
dist
build
reports
local.json

7 changes: 0 additions & 7 deletions .eslintrc.json

This file was deleted.

5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Logs
logs
*.log

# Diff files
*.diff
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Development tools
.idea
local.json
local.yaml

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand Down
12 changes: 12 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://swc.rs/schema.json",
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true
},
"transform": {
"decoratorMetadata": true
}
}
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"cSpell.words": ["shapefile"]
"cSpell.words": ["shapefile"],
"typescript.tsdk": "node_modules/typescript/lib"
}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENV NODE_ENV=production
ENV SERVER_PORT=8080
ENV CONFIG_OFFLINE_MODE=true

WORKDIR /usr/src/app

Expand All @@ -30,4 +31,4 @@ COPY --chown=node:node ./config ./config
USER node
EXPOSE 8080

CMD ["dumb-init", "node", "--require", "./common/tracing.js", "./index.js"]
CMD ["dumb-init", "node", "--import", "./instrumentation.mjs", "./index.js"]
18 changes: 12 additions & 6 deletions config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,22 @@
"prettyPrint": {
"__name": "LOG_PRETTY_PRINT_ENABLED",
"__format": "boolean"
},
"opentelemetryOptions": {
"enabled": {
"__name": "OPENTELEMETRY_LOGGING_ENABLED",
"__format": "boolean"
},
"url": "OPENTELEMETRY_LOGGING_URL",
"resourceAttributes": {
"__name": "OPENTELEMETRY_RESOURCE_ATTRIBUTES",
"__format": "json"
}
}
},
"tracing": {
"enabled": "TELEMETRY_TRACING_ENABLED",
"isEnabled": "TELEMETRY_TRACING_ENABLED",
"url": "TELEMETRY_TRACING_URL"
},
"metrics": {
"enabled": "TELEMETRY_METRICS_ENABLED",
"url": "TELEMETRY_METRICS_URL",
"interval": "TELEMETRY_METRICS_INTERVAL"
}
},
"server": {
Expand Down
16 changes: 7 additions & 9 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,18 @@
"telemetry": {
"logger": {
"level": "info",
"prettyPrint": false
"prettyPrint": false,
"opentelemetryOptions": {
"enabled": false
}
},
"shared": {},
"tracing": {
"enabled": "true",
"url": "http://localhost:4318/v1/traces"
},
"metrics": {
"enabled": false,
"url": "http://localhost:4318/v1/metrics",
"interval": 5
"isEnabled": false
}
},
"server": {
"port": "8080",
"port": 8080,
"request": {
"payload": {
"limit": "1mb"
Expand Down
5 changes: 5 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import tsBaseConfig from '@map-colonies/eslint-config/ts-base';
import jestConfig from '@map-colonies/eslint-config/jest';
import { config } from '@map-colonies/eslint-config/helpers';

export default config(jestConfig, tsBaseConfig);
1 change: 1 addition & 0 deletions helm/templates/_helpers.tpl
Comment thread
CL-SHLOMIKONCHA marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,4 @@ Returns the cloud provider image pull secret name from global if exists or from
{{- .Values.cloudProvider.imagePullSecretName -}}
{{- end -}}
{{- end -}}

4 changes: 2 additions & 2 deletions helm/templates/_tplValues.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ Custom definitions
{{- include "common.tplvalues.merge" ( dict "values" ( list .Values.tracing .Values.global.tracing ) "context" . ) }}
{{- end -}}

{{- define "common.metrics.merged" -}}
{{- include "common.tplvalues.merge" ( dict "values" ( list .Values.metrics .Values.global.metrics ) "context" . ) }}
{{- define "common.openTelemetryOptions.merged" -}}
{{- include "common.tplvalues.merge" ( dict "values" ( list .Values.env.openTelemetryOptions .Values.global.openTelemetryOptions ) "context" . ) }}
{{- end -}}
22 changes: 16 additions & 6 deletions helm/templates/configmap.yaml
Comment thread
CL-SHLOMIKONCHA marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- $chartName := include "ingestion-trigger.name" . -}}
{{- $tracing := (include "common.tracing.merged" .) | fromYaml }}
{{- $metrics := (include "common.metrics.merged" .) | fromYaml }}
{{- $configmapName := include "configmap.fullname" . }}
{{- $tracing := (include "common.tracing.merged" .) | fromYaml }}
{{- $openTelemetryOptions := (include "common.openTelemetryOptions.merged" .) | fromYaml }}
{{- $serviceUrls := (include "common.serviceUrls.merged" .) | fromYaml }}
{{- $jobDefinitions := (include "common.jobDefinitions.merged" .) | fromYaml }}
{{- $storage := (include "common.storage.merged" .) | fromYaml }}
Expand Down Expand Up @@ -47,10 +47,20 @@ data:
{{ if $tracing.enabled }}
TELEMETRY_TRACING_URL: {{ $tracing.url }}
{{ end }}
{{ if $metrics.enabled }}
TELEMETRY_METRICS_ENABLED: {{ $metrics.enabled | quote }}
TELEMETRY_METRICS_URL: {{ $metrics.url }}
{{- with $openTelemetryOptions }}
OPENTELEMETRY_LOGGING_ENABLED: {{ .enabled | quote }}
{{ if .enabled }}
OPENTELEMETRY_LOGGING_URL: {{ .url | quote }}
{{ if .resourceAttributes }}
OPENTELEMETRY_RESOURCE_ATTRIBUTES: {{ .resourceAttributes | toJson | quote }}
{{ end }}
{{ end }}
{{- end }}
{{- with .Values.configManagement }}
CONFIG_SERVER_URL: {{ .serverUrl | quote }}
CONFIG_NAME: {{ .name | quote }}
CONFIG_VERSION: {{ .version | quote }}
OFFLINE_MODE: {{ .offlineMode | quote }}
{{- end }}
npm_config_cache: /tmp/
{{- end }}
# TODO: check if values should be clean up
5 changes: 4 additions & 1 deletion helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{{- $releaseName := .Release.Name -}}
{{- $chartName := include "ingestion-trigger.name" . -}}
{{- $deploymentName := include "deployment.fullname" . }}
{{- $metrics := (include "common.metrics.merged" .) | fromYaml }}
{{- $configmapName := include "configmap.fullname" . }}
{{- $cloudProviderFlavor := include "ingestion-trigger.cloudProviderFlavor" . -}}
{{- $cloudProviderDockerRegistryUrl := include "ingestion-trigger.cloudProviderDockerRegistryUrl" . -}}
Expand Down Expand Up @@ -66,6 +65,10 @@ spec:
subPath: {{ quote .Values.global.ca.key }}
{{- end }}
env:
- name: K8S_POD_UID
valueFrom:
fieldRef:
fieldPath: metadata.uid
- name: SERVER_PORT
value: {{ .Values.env.targetPort | quote }}
{{- if .Values.global.ca.secretName }}
Expand Down
23 changes: 16 additions & 7 deletions helm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
global:
cloudProvider: {}
tracing: {}
metrics: {}
environment: ''
domain: "RASTER"
serviceUrls: {}
openTelemetryOptions:
enabled: false
url: ''
resourceAttributes: {}
jobDefinitions: {}
storage:
fs:
Expand Down Expand Up @@ -74,12 +77,11 @@ tracing:
enabled: false
url: ''

metrics:
enabled: false
url: ''
prometheus:
scrape: true
port: 8080
configManagement:
offlineMode: false
name: 'ingestion-trigger'
version: 'latest'
serverUrl: 'http://localhost:8080/api'

image:
repository: ingestion-trigger
Expand Down Expand Up @@ -128,8 +130,15 @@ env:
protocol: TCP
logLevel: info
logPrettyPrintEnabled: false
openTelemetryOptions:
enabled: false
url: ''
resourceAttributes: {}
responseCompressionEnabled: true
requestPayloadLimit: 1mb
tracing:
enabled: false
url: ''
storageExplorer:
layerSourceDir: '/layerSources'
displayNameDir: "\\layerSources"
Expand Down
Loading
Loading