Skip to content

Commit

Permalink
fix(k8s): make es-setup job parameters more contextual (#2313)
Browse files Browse the repository at this point in the history
* 2301 | update property names to signify that it is a setup job (#2313)
  • Loading branch information
shakti-garg authored Mar 31, 2021
1 parent 02dff70 commit 1a62813
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions contrib/kubernetes/datahub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ Current chart version is `0.1.1`
| datahub-mce-consumer.image.repository | string | `"linkedin/datahub-mce-consumer"` | |
| datahub-mce-consumer.image.tag | string | `"latest"` | |
| datahub-ingestion-cron.enabled | bool | `false` | |
| elasticsearchInitJob.enabled | bool | `true` | |
| elasticsearchInitJob.image.repository | string | `"linkedin/datahub-elasticsearch-setup"` | |
| elasticsearchInitJob.image.tag | string | `"latest"` | |
| elasticsearchSetupJob.enabled | bool | `true` | |
| elasticsearchSetupJob.image.repository | string | `"linkedin/datahub-elasticsearch-setup"` | |
| elasticsearchSetupJob.image.tag | string | `"latest"` | |
| global.datahub.appVersion | string | `"1.0"` | |
| global.datahub.gms.port | string | `"8080"` | |
| global.elasticsearch.host | string | `"elasticsearch"` | |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{- if .Values.elasticsearchInitJob.enabled -}}
{{- if .Values.elasticsearchSetupJob.enabled -}}
apiVersion: batch/v1
kind: Job
metadata:
name: {{ .Release.Name }}-elasticsearch-init-job
name: {{ .Release.Name }}-elasticsearch-setup-job
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
Expand All @@ -26,8 +26,8 @@ spec:
runAsUser: 1000
fsGroup: 1000
containers:
- name: elasticsearch-init-job
image: "{{ .Values.elasticsearchInitJob.image.repository }}:{{ .Values.elasticsearchInitJob.image.tag }}"
- name: elasticsearch-setup-job
image: "{{ .Values.elasticsearchSetupJob.image.repository }}:{{ .Values.elasticsearchSetupJob.image.tag }}"
env:
- name: ELASTICSEARCH_HOST
value: {{ .Values.global.elasticsearch.host | quote }}
Expand Down
2 changes: 1 addition & 1 deletion contrib/kubernetes/datahub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ datahub-ingestion-cron:
repository: linkedin/datahub-ingestion
tag: "latest"

elasticsearchInitJob:
elasticsearchSetupJob:
enabled: true
image:
repository: linkedin/datahub-elasticsearch-setup
Expand Down

0 comments on commit 1a62813

Please sign in to comment.