Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
spark thrift server 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
fcomte committed Mar 18, 2021
1 parent abfa371 commit 8ee4aa4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/spark-thrift-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.7
version: 0.0.8

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
15 changes: 15 additions & 0 deletions charts/spark-thrift-server/templates/configmap-s3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if .Values.environment.s3 -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "spark-thrift-server.configMapNameS3" . }}
labels:
{{- include "spark-thrift-server.labels" . | nindent 4 }}
data:
AWS_ACCESS_KEY_ID: "{{ .Values.s3.accessKeyId }}"
AWS_S3_ENDPOINT: "{{ .Values.s3.endpoint }}"
AWS_DEFAULT_REGION: "{{ .Values.s3.defaultRegion }}"
AWS_SECRET_ACCESS_KEY: "{{ .Values.s3.secretAccessKey }}"
AWS_SESSION_TOKEN: "{{ .Values.s3.sessionToken }}"

{{- end }}
5 changes: 5 additions & 0 deletions charts/spark-thrift-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ spec:
env:
- name: SPARK_NO_DAEMONIZE
value: "true"
envFrom:
{{- if .Values.environment.s3 }}
- configMapRef:
name: {{ include "spark-thrift-server.configMapNameS3" . }}
{{- end }}
ports:
- name: thrift
containerPort: 10000
Expand Down

0 comments on commit 8ee4aa4

Please sign in to comment.