fixed helm chart
All checks were successful
the build was successful

This commit is contained in:
ston1th 2019-01-18 21:54:13 +01:00
commit 10ad216fcf
7 changed files with 41 additions and 10 deletions

View file

@ -1,25 +1,25 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "drone.fullname" . }}-db
name: {{ template "testapp.fullname" . }}-db
annotations:
{{- range $key, $value := .Values.Db.service.annotations }}
{{- range $key, $value := .Values.service.db.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
labels:
app: {{ template "drone.name" . }}-db
app: {{ template "testapp.name" . }}-db
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
type: {{ .Values.Db.service.type }}
type: {{ .Values.service.db.type }}
ports:
- name: http
port: {{ .Values.Db.service.httpPort }}
port: {{ .Values.service.db.httpPort }}
targetPort: 8080
{{- if hasKey .Values.Db.service "nodePort" }}
nodePort: {{ .Values.Db.service.nodePort }}
{{- if hasKey .Values.service.db "nodePort" }}
nodePort: {{ .Values.service.db.nodePort }}
{{- end }}
selector:
app: {{ template "drone.name" . }}-db
app: {{ template "testapp.name" . }}-db
release: {{ .Release.Name | quote }}