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

Commit

Permalink
spark thrift 0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
fcomte committed Mar 19, 2021
1 parent 8ee4aa4 commit bb6639c
Show file tree
Hide file tree
Showing 5 changed files with 48 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.8
version: 0.0.9

# 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
3 changes: 3 additions & 0 deletions charts/spark-thrift-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ spec:
labels:
{{- include "spark-thrift-server.selectorLabels" . | nindent 8 }}
spec:
serviceAccountName: {{ include "spark-thrift-server.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
subdomain: {{ include "spark-thrift-server.fullname" . }}
hostname: thrift
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down
18 changes: 18 additions & 0 deletions charts/spark-thrift-server/templates/role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- if .Values.serviceAccount.create -}}
{{- if .Values.kubernetes.enable -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "spark-thrift-server.serviceAccountName" . }}
labels:
{{- include "spark-thrift-server.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ .Values.kubernetes.role}}
subjects:
- kind: ServiceAccount
name: {{ include "spark-thrift-server.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end }}
{{- end }}
12 changes: 12 additions & 0 deletions charts/spark-thrift-server/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "spark-thrift-server.serviceAccountName" . }}
labels:
{{- include "spark-thrift-server.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
14 changes: 14 additions & 0 deletions charts/spark-thrift-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@ security:
enable: true
ip: "0.0.0.0/0"

serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""

kubernetes:
enable: true
role: "edit"

readiness:
enabled: "true"

Expand All @@ -77,6 +90,7 @@ securityContext: {}

networking:
type: ClusterIP
clusterIP: None
port: 10000
sparkui:
port: 4040
Expand Down

0 comments on commit bb6639c

Please sign in to comment.