forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Helm improvements (apache#11700)
* Adding docker build/push * Adding build script * Trying username * Updating build script * Fixing script path? * Lising envvars * Pulling HEAD * Actually pushing * Fixing build / SHA * Logout before login * updating docker login * Fixing docker login * Trying stdin pwd * Adding check for forks * Fixing tagging * Fixing refspec * Updating Dockerfile-dev * Adding license to script * Fixing Cypress tests * Adding Helm hooks and force reload option * Adding worker pod * Removing head SHA checkout in docker.yml
- Loading branch information
1 parent
218f58e
commit 68693c7
Showing
5 changed files
with
115 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ template "superset.fullname" . }}-worker | ||
labels: | ||
app: {{ template "superset.name" . }}-worker | ||
chart: {{ template "superset.chart" . }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
spec: | ||
replicas: {{ .Values.replicaCount }} | ||
selector: | ||
matchLabels: | ||
app: {{ template "superset.name" . }}-worker | ||
release: {{ .Release.Name }} | ||
template: | ||
metadata: | ||
{{ if .Values.supersetWorker.forceReload }} | ||
annotations: | ||
# Optionally force the thing to reload | ||
force-reload: {{ randAlphaNum 5 | quote }} | ||
{{ end }} | ||
labels: | ||
app: {{ template "superset.name" . }}-worker | ||
release: {{ .Release.Name }} | ||
spec: | ||
securityContext: | ||
runAsUser: 0 # Needed in order to allow pip install to work in bootstrap | ||
{{- if .Values.supersetWorker.initContainers }} | ||
initContainers: | ||
{{- tpl (toYaml .Values.supersetWorker.initContainers) . | nindent 6 }} | ||
{{- end }} | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
command: {{ tpl (toJson .Values.supersetWorker.command) . }} | ||
env: | ||
- name: "SUPERSET_PORT" | ||
value: {{ .Values.service.port | quote}} | ||
{{ if .Values.extraEnv }} | ||
{{- range $key, $value := .Values.extraEnv }} | ||
- name: {{ $key | quote}} | ||
value: {{ $value | quote }} | ||
{{- end }} | ||
{{- end }} | ||
envFrom: | ||
- secretRef: | ||
name: {{ tpl .Values.envFromSecret . | quote }} | ||
volumeMounts: | ||
- name: superset-config | ||
mountPath: {{ .Values.configMountPath | quote }} | ||
readOnly: true | ||
resources: | ||
{{ toYaml .Values.resources | indent 12 }} | ||
{{- with .Values.nodeSelector }} | ||
nodeSelector: | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
{{- with .Values.affinity }} | ||
affinity: | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
{{- with .Values.tolerations }} | ||
tolerations: | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
volumes: | ||
- name: superset-config | ||
secret: | ||
secretName: {{ tpl .Values.configFromSecret . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters