Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional IngestionJob parameters passed by Spark Launcher #1130

Merged
merged 22 commits into from
Nov 4, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
helm update: jobservice secrets
Signed-off-by: Oleksii Moskalenko <moskalenko.alexey@gmail.com>
  • Loading branch information
pyalex committed Nov 4, 2020
commit ecb1337cba3dc1426054bd0ded41acab996f9515
Original file line number Diff line number Diff line change
Expand Up @@ -37,40 +37,32 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}

{{- if .Values.gcpServiceAccount.enabled }}
{{- if Values.secrets }}
volumes:
- name: {{ template "feast-jobservice.fullname" . }}-gcp-service-account
{{ - range $secret := .Values.secrets }}
- name: {{ $secret }}
secret:
secretName: {{ .Values.gcpServiceAccount.existingSecret.name }}
secretName: {{ $secret }}
{{ - end }}
{{- end }}

containers:
- name: {{ .Chart.Name }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}

{{- if .Values.gcpServiceAccount.enabled }}
{{- if .Values.secrets }}
volumeMounts:
- name: {{ template "feast-jobservice.fullname" . }}-gcp-service-account
mountPath: /etc/secrets/google
{{ - range $secret := .Values.secrets }}
- name: {{ $secret }}
mountPath: "/etc/secrets/{{ $secret }}"
readOnly: true
{{ - end }}
{{- end }}

env:
- name: FEAST_CORE_URL
value: "{{ .Release.Name }}-feast-core:6565"
- name: FEAST_HISTORICAL_SERVING_URL
value: "{{ .Release.Name }}-feast-batch-serving:6566"

{{- if .Values.gcpServiceAccount.enabled }}
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/secrets/google/{{ .Values.gcpServiceAccount.existingSecret.key }}
{{- end }}

{{- if .Values.gcpProjectId }}
- name: GOOGLE_CLOUD_PROJECT
value: {{ .Values.gcpProjectId | quote }}
{{- end }}

{{- range $key, $value := .Values.envOverrides }}
- name: {{ printf "%s" $key | replace "." "_" | upper | quote }}
Expand Down
2 changes: 1 addition & 1 deletion infra/docker/jobservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN make compile-protos-python
# Install Feast SDK
COPY .git .git
COPY README.md README.md
RUN pip install -e sdk/python -U
RUN pip install -U -e sdk/python
RUN pip install "s3fs" "boto3" "urllib3>=1.25.4"

#
Expand Down
3 changes: 2 additions & 1 deletion sdk/python/feast/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ class AuthProvider(Enum):
CONFIG_STATSD_PORT: "0",
# IngestionJob DeadLetter Destination
CONFIG_DEADLETTER_PATH: "",
# ProtoRegistry Address
# ProtoRegistry Address (currently only Stencil Server is supported as registry)
# https://github.com/gojekfarm/stencil
CONFIG_STENCIL_URL: "",
}