Skip to content

Commit

Permalink
feat(search,schema-registry): updates for v0.10.3 release (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker authored May 26, 2023
1 parent c1460c1 commit f5d8134
Show file tree
Hide file tree
Showing 20 changed files with 175 additions and 30 deletions.
12 changes: 6 additions & 6 deletions charts/datahub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@ description: A Helm chart for LinkedIn DataHub
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.2.164
version: 0.2.165
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 0.10.2
appVersion: 0.10.3
dependencies:
- name: datahub-gms
version: 0.2.147
version: 0.2.148
repository: file://./subcharts/datahub-gms
condition: datahub-gms.enabled
- name: datahub-frontend
version: 0.2.137
repository: file://./subcharts/datahub-frontend
condition: datahub-frontend.enabled
- name: datahub-mae-consumer
version: 0.2.143
version: 0.2.144
repository: file://./subcharts/datahub-mae-consumer
condition: global.datahub_standalone_consumers_enabled
- name: datahub-mce-consumer
version: 0.2.145
version: 0.2.146
repository: file://./subcharts/datahub-mce-consumer
condition: global.datahub_standalone_consumers_enabled
- name: datahub-ingestion-cron
version: 0.2.132
repository: file://./subcharts/datahub-ingestion-cron
condition: datahub-ingestion-cron.enabled
- name: acryl-datahub-actions
version: 0.2.136
version: 0.2.137
repository: file://./subcharts/acryl-datahub-actions
condition: acryl-datahub-actions.enabled
maintainers:
Expand Down
4 changes: 2 additions & 2 deletions charts/datahub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ helm install datahub datahub/datahub --values <<path-to-values-file>>
| global.kafka.topics.metadata_change_log_versioned_topic_name | string | `"MetadataChangeLog_Versioned_v1"` | Kafka topic name for Versioned Metadata Change Log events |
| global.kafka.topics.metadata_change_log_timeseries_topic_name | string | `"MetadataChangeLog_Timeseries_v1"` | Kafka topic name for Timeseries Metadata Change Log events |
| global.kafka.topics.platform_event_topic_name | string | `"PlatformEvent_v1"` | Kafka topic name for Platform events |
| global.kafka.schemaregistry.url | string | `"http://prerequisites-cp-schema-registry:8081"` | URL to kafka schema registry |
| global.kafka.schemaregistry.url | string | `` | URL to kafka schema registry if using `KAFKA` type |
| global.neo4j.host | string | `"prerequisites-neo4j:7474"` | Neo4j host address (with port) |
| global.neo4j.uri | string | `"bolt://prerequisites-neo4j"` | Neo4j URI |
| global.neo4j.username | string | `"neo4j"` | Neo4j user name |
Expand Down Expand Up @@ -139,7 +139,7 @@ helm install datahub datahub/datahub --values <<path-to-values-file>>
| global.elasticsearch.auth.password.secretRef | string | `""` | Secret that contains the elasticsearch password |
| global.elasticsearch.auth.password.secretKey | string | `""` | Secret key that contains the elasticsearch password |
| global.elasticsearch.auth.password.value | string | `""` | Alternative to using the secret above, uses raw string value instead |
| global.kafka.schemaregistry.type | string | `"KAFKA"` | Type of schema registry (KAFKA or AWS_GLUE) |
| global.kafka.schemaregistry.type | string | `"INTERNAL"` | Type of schema registry (INTERNAL, KAFKA, or AWS_GLUE) |
| global.kafka.schemaregistry.glue.region | string | `""` | Region of the AWS Glue schema registry |
| global.kafka.schemaregistry.glue.registry | string | `""` | Name of the AWS Glue schema registry |
| datahub.metadata_service_authentication.enabled | bool | `false` | Whether Metadata Service Authentication is enabled. |
Expand Down
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/acryl-datahub-actions/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: A Helm chart for Kubernetes
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.2.136
version: 0.2.137
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 0.0.11
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,13 @@ spec:
value: "{{ .Values.global.datahub.gms.port }}"
- name: KAFKA_BOOTSTRAP_SERVER
value: "{{ .Values.global.kafka.bootstrap.server }}"
{{- if eq .Values.global.kafka.schemaregistry.type "INTERNAL" }}
- name: SCHEMA_REGISTRY_URL
value: {{ printf "http://%s-%s:%s/schema-registry/api/" .Release.Name "datahub-gms" .Values.global.datahub.gms.port }}
{{- else if eq .Values.global.kafka.schemaregistry.type "KAFKA" }}
- name: SCHEMA_REGISTRY_URL
value: "{{ .Values.global.kafka.schemaregistry.url }}"
{{- end }}
- name: KAFKA_AUTO_OFFSET_POLICY
value: "{{ .Values.actions.kafkaAutoOffsetPolicy }}"
{{- if .Values.global.springKafkaConfigurationOverrides }}
Expand Down
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/datahub-gms/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: A Helm chart for LinkedIn DataHub's datahub-gms component
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.2.147
version: 0.2.148
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: v0.10.0
14 changes: 14 additions & 0 deletions charts/datahub/subcharts/datahub-gms/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{- if .Values.global.elasticsearch.search.custom.enabled -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ printf "%s-%s" .Release.Name "search-custom" }}
labels:
{{- include "datahub-gms.labels" . | nindent 4 }}
{{- range $key, $val := .Values.extraLabels }}
{{ $key }}: {{ $val | quote }}
{{- end }}
data:
search_config.yml: |
{{- toYaml .Values.global.elasticsearch.search.custom.config | nindent 4 }}
{{- end }}
22 changes: 20 additions & 2 deletions charts/datahub/subcharts/datahub-gms/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ spec:
defaultMode: 0444
secretName: {{ .name }}
{{- end }}
{{- if .Values.global.elasticsearch.search.custom.enabled }}
- configMap:
name: {{ printf "%s-%s" .Release.Name "search-custom" }}
name: search-config
{{- end }}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -89,6 +94,12 @@ spec:
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
env:
{{- if .Values.global.elasticsearch.search.custom.enabled }}
- name: ELASTICSEARCH_QUERY_CUSTOM_CONFIG_ENABLED
value: "true"
- name: ELASTICSEARCH_QUERY_CUSTOM_CONFIG_FILE
value: "/datahub/datahub-gms/resources/search/search_config.yml"
{{- end}}
{{- if gt .Values.replicaCount 1.0}}
- name: SEARCH_SERVICE_CACHE_IMPLEMENTATION
value: "hazelcast"
Expand Down Expand Up @@ -137,9 +148,12 @@ spec:
value: "{{ .Values.global.sql.datasource.driver }}"
- name: KAFKA_BOOTSTRAP_SERVER
value: "{{ .Values.global.kafka.bootstrap.server }}"
{{- with .Values.global.kafka.schemaregistry.url }}
{{- if eq .Values.global.kafka.schemaregistry.type "INTERNAL" }}
- name: KAFKA_SCHEMAREGISTRY_URL
value: "{{ . }}"
value: {{ printf "http://localhost:%s/schema-registry/api/" .Values.global.datahub.gms.port }}
{{- else if eq .Values.global.kafka.schemaregistry.type "KAFKA" }}
- name: KAFKA_SCHEMAREGISTRY_URL
value: "{{ .Values.global.kafka.schemaregistry.url }}"
{{- end }}
{{- with .Values.global.kafka.schemaregistry.type }}
- name: SCHEMA_REGISTRY_TYPE
Expand Down Expand Up @@ -331,6 +345,10 @@ spec:
- name: datahub-certs-dir
mountPath: {{ .path | default "/mnt/certs" }}
{{- end }}
{{- if .Values.global.elasticsearch.search.custom.enabled }}
- name: search-config
mountPath: "/datahub/datahub-gms/resources/search"
{{- end }}
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/datahub-gms/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ global:
enable_retention: false ## Set to true to enable retention on local DB

## Enables always emitting a MCL even when no changes are detected. Used for Time Based Lineage when no changes occur.
alwaysEmitChangeLog: true
alwaysEmitChangeLog: false

## Enables diff mode for graph writes, uses a different code path that produces a diff from previous to next to write relationships instead of wholesale deleting edges and reading
enableGraphDiffMode: true
Expand Down
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/datahub-mae-consumer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: A Helm chart for Kubernetes
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.2.143
version: 0.2.144
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: v0.10.0
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,12 @@ spec:
value: "{{ .Values.global.datahub.gms.port }}"
- name: KAFKA_BOOTSTRAP_SERVER
value: "{{ .Values.global.kafka.bootstrap.server }}"
{{- with .Values.global.kafka.schemaregistry.url }}
{{- if eq .Values.global.kafka.schemaregistry.type "INTERNAL" }}
- name: KAFKA_SCHEMAREGISTRY_URL
value: "{{ . }}"
value: {{ printf "http://%s-%s:%s/schema-registry/api/" .Release.Name "datahub-gms" .Values.global.datahub.gms.port }}
{{- else if eq .Values.global.kafka.schemaregistry.type "KAFKA" }}
- name: KAFKA_SCHEMAREGISTRY_URL
value: "{{ .Values.global.kafka.schemaregistry.url }}"
{{- end }}
{{- with .Values.global.kafka.schemaregistry.type }}
- name: SCHEMA_REGISTRY_TYPE
Expand Down
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/datahub-mae-consumer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ global:
# secretKey: <secret-key>

## Enables always emitting a MCL even when no changes are detected. Used for Time Based Lineage when no changes occur.
alwaysEmitChangeLog: true
alwaysEmitChangeLog: false

## Enables diff mode for graph writes, uses a different code path that produces a diff from previous to next to write relationships instead of wholesale deleting edges and reading
enableGraphDiffMode: true
Expand Down
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/datahub-mce-consumer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: A Helm chart for Kubernetes
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.2.145
version: 0.2.146
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: v0.10.0
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@ spec:
value: "true"
- name: KAFKA_BOOTSTRAP_SERVER
value: "{{ .Values.global.kafka.bootstrap.server }}"
{{- with .Values.global.kafka.schemaregistry.url }}
{{- if eq .Values.global.kafka.schemaregistry.type "INTERNAL" }}
- name: KAFKA_SCHEMAREGISTRY_URL
value: "{{ . }}"
value: {{ printf "http://%s-%s:%s/schema-registry/api/" .Release.Name "datahub-gms" .Values.global.datahub.gms.port }}
{{- else if eq .Values.global.kafka.schemaregistry.type "KAFKA" }}
- name: KAFKA_SCHEMAREGISTRY_URL
value: "{{ .Values.global.kafka.schemaregistry.url }}"
{{- end }}
{{- with .Values.global.kafka.schemaregistry.type }}
- name: SCHEMA_REGISTRY_TYPE
Expand Down
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/datahub-mce-consumer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ global:
secretKey: "mysql-password"

## Enables always emitting a MCL even when no changes are detected. Used for Time Based Lineage when no changes occur.
alwaysEmitChangeLog: true
alwaysEmitChangeLog: false

## Enables diff mode for graph writes, uses a different code path that produces a diff from previous to next to write relationships instead of wholesale deleting edges and reading
enableGraphDiffMode: true
Expand Down
5 changes: 5 additions & 0 deletions charts/datahub/templates/datahub-upgrade/_upgrade.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ Return the env variables for upgrade jobs
{{- end }}
- name: KAFKA_BOOTSTRAP_SERVER
value: "{{ .Values.global.kafka.bootstrap.server }}"
{{- if eq .Values.global.kafka.schemaregistry.type "INTERNAL" }}
- name: KAFKA_SCHEMAREGISTRY_URL
value: {{ printf "http://%s-%s:%s/schema-registry/api/" .Release.Name "datahub-gms" .Values.global.datahub.gms.port }}
{{- else if eq .Values.global.kafka.schemaregistry.type "KAFKA" }}
- name: KAFKA_SCHEMAREGISTRY_URL
value: "{{ .Values.global.kafka.schemaregistry.url }}"
{{- end }}
- name: ELASTICSEARCH_HOST
value: {{ .Values.global.elasticsearch.host | quote }}
- name: ELASTICSEARCH_PORT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ spec:
{{- include "datahub.upgrade.env" . | nindent 12}}
- name: DATAHUB_ANALYTICS_ENABLED
value: {{ .Values.global.datahub_analytics_enabled | quote }}
{{- if eq .Values.global.kafka.schemaregistry.type "INTERNAL" }}
- name: SCHEMA_REGISTRY_SYSTEM_UPDATE
value: "true"
- name: SPRING_KAFKA_PROPERTIES_AUTO_REGISTER_SCHEMAS
value: "false"
- name: SPRING_KAFKA_PROPERTIES_USE_LATEST_VERSION
value: "true"
{{- end }}
{{- with .Values.global.kafka.schemaregistry.type }}
- name: SCHEMA_REGISTRY_TYPE
value: "{{ . }}"
Expand Down
7 changes: 7 additions & 0 deletions charts/datahub/templates/kafka-setup-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ spec:
value: {{ .Values.global.kafka.zookeeper.server | quote }}
- name: KAFKA_BOOTSTRAP_SERVER
value: {{ .Values.global.kafka.bootstrap.server | quote }}
{{- if eq .Values.global.kafka.schemaregistry.type "INTERNAL" }}
- name: USE_CONFLUENT_SCHEMA_REGISTRY
value: "false"
{{- else if eq .Values.global.kafka.schemaregistry.type "KAFKA" }}
- name: USE_CONFLUENT_SCHEMA_REGISTRY
value: "true"
{{- end }}
{{- if .Values.global.springKafkaConfigurationOverrides }}
{{- range $configName, $configValue := .Values.global.springKafkaConfigurationOverrides }}
- name: KAFKA_PROPERTIES_{{ $configName | replace "." "_" | upper }}
Expand Down
Loading

0 comments on commit f5d8134

Please sign in to comment.