-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ingestion config map in values (#423)
* feat: add ingestion config map in values Add support for providing the ingestion recipe's definition in `datahub-ingestion-cron`'s `values.yaml`. The current datahub helm implementation relies on an externally managed config map to specify an ingestion recipe. This necessarily requires production k8s access or a separate management system for k8s config maps. Now, helm can manage the config map for datahub. This is backwards compatible - if `fileContent` is not provided, it assumes the config map is managed externally * fix: improve some of the commented out examples in values.yaml --------- Co-authored-by: Travis Cook <[email protected]>
- Loading branch information
1 parent
9e3524f
commit 5366a37
Showing
5 changed files
with
46 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
15 changes: 15 additions & 0 deletions
15
charts/datahub/subcharts/datahub-ingestion-cron/templates/configmap.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- $labels := include "datahub-ingestion-cron.labels" .}} | ||
{{- range $jobName, $val := .Values.crons }} | ||
{{- if $val.recipe.fileContent }} | ||
apiVersion: {{ include "datahub-ingestion-cron.cronjob.apiVersion" $}} | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ $val.recipe.configmapName }} | ||
labels: {{- $labels | nindent 4 }} | ||
data: | ||
{{ $val.recipe.fileName }}: |- | ||
{{- toYaml $val.recipe.fileContent | nindent 4 }} | ||
--- | ||
{{- end }} | ||
{{- end }} | ||
|
This file contains 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