feat(wazuh dashboard): add export configuration ndjson file for custom dashboard#168
Open
feat(wazuh dashboard): add export configuration ndjson file for custom dashboard#168
Conversation
…ove import job - Add conditional ConfigMap creation for saved object exports based on `importSavedObjects.enabled`. - Support multiple exports via `dashboard.exports` in values.yaml. - Refactor import-job to use initContainer for waiting on dashboard readiness. - Import all export files dynamically with proper error handling and logging.
Calebasah
requested changes
Dec 3, 2025
| data: | ||
| "export.ndjson": | | ||
| {{ $.Files.Get "files/configs/export.ndjson" | nindent 4 }} | ||
| {{- range $k, $v := .exports }} |
Contributor
Author
There was a problem hiding this comment.
In case there're multiple custom dashboards to be added, we can configure them from values.yaml like:
exports:
"export1.ndjson": |
{{ $.Files.Get "files/configs/export.ndjson" | nindent 4 }}The loop in the configmap then creates key value pairs representing each file added
Contributor
There was a problem hiding this comment.
Why use the snippet?
{{- range $k, $v := .exports }}
{{ printf "%s" $k | quote | nindent 2 }}: |
{{ $v | nindent 4 }}
{{- end }}
…URLs - Modified export job to directly download export files from S3 URLs instead of using ConfigMap - Removed volume mounts that referenced the ConfigMap - Eliminated ConfigMap size limitations by avoiding storage of large NDJSON files - Job now iterates through .Values.dashboard.exports directly to download and import each file
Calebasah
previously approved these changes
Dec 3, 2025
ArmandMeppa
requested changes
Dec 11, 2025
|
Calebasah
approved these changes
Dec 12, 2025
ArmandMeppa
approved these changes
Dec 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



#148