Skip to content

Commit

Permalink
feat: Add log passthrough support (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppawlowski authored Feb 6, 2024
2 parents 778c1a9 + f6be221 commit 82713e5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/flowforge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ For other values please refer to the documentation below.
- `forge.readinessProbe` block with [readinessProbe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) configuration for the core application pod (check [here](#liveness-readiness-and-startup-probes) for more details)
- `forge.startupProbe` block with [startupProbe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) configuration for the core application pod (check [here](#liveness-readiness-and-startup-probes) for more details)
- `forge.containerSecurityContext` allows to configure [securityContext](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) for the core application container
- `forge.logPassthrough` Allows Node-RED Project pods to log in JSON format to standard out, allowing this to be ingested by a logging service (default `false`)


note: `forge.projectSelector` and `forge.managementSelector` defaults mean that you must have at least 2 nodes in your cluster and they need to be labeled before installing.
Expand Down
3 changes: 3 additions & 0 deletions helm/flowforge/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ data:
{{- if .Values.ingress.certManagerIssuer }}
certManagerIssuer: {{ .Values.ingress.certManagerIssuer }}
{{- end }}
{{- if .Values.forge.logPassthrough }}
logPassthrough: {{ .Values.forge.logPassthrough }}
{{- end }}
{{- if .Values.forge.email }}
email:
enabled: true
Expand Down
3 changes: 3 additions & 0 deletions helm/flowforge/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,9 @@
"type": "integer"
}
}
},
"logPassthrough": {
"type": "boolean"
}
},
"required": [
Expand Down
2 changes: 2 additions & 0 deletions helm/flowforge/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ forge:
successThreshold: 1
failureThreshold: 3

logPassthrough: false

postgresql:
auth:
postgresPassword: Moomiet0
Expand Down

0 comments on commit 82713e5

Please sign in to comment.