Remove unused service and ingress chart templates

This commit is contained in:
David Burke 2020-01-24 14:53:39 -05:00
parent 7a8c1f107d
commit 45267da312
4 changed files with 8 additions and 62 deletions

View file

@ -39,9 +39,10 @@ spec:
value: "False"
- name: STATIC_URL
value: /
envFrom:
- secretRef:
name: {{ include "glitchtip.fullname" . }}
- name: DATABASE_URL
value: {{ required "databaseURL is a required value." .Values.databaseURL | quote }}
- name: SECRET_KEY
value: {{ required "secretKey is a required value." .Values.secretKey | quote }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

View file

@ -1,41 +0,0 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "glitchtip.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "glitchtip.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ . }}
backend:
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}

View file

@ -21,6 +21,7 @@ spec:
value: "False"
- name: STATIC_URL
value: /
envFrom:
- secretRef:
name: {{ include "glitchtip.fullname" . }}
- name: DATABASE_URL
value: {{ required "databaseURL is a required value." .Values.databaseURL | quote }}
- name: SECRET_KEY
value: {{ required "secretKey is a required value." .Values.secretKey | quote }}

View file

@ -1,15 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "glitchtip.fullname" . }}
labels:
{{- include "glitchtip.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "glitchtip.selectorLabels" . | nindent 4 }}