Code Review
/
ric-plt
/
ric-dep.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
helm3 and K8 1.18 support added
[ric-plt/ric-dep.git]
/
helm
/
infrastructure
/
subcharts
/
kong
/
templates
/
service-kong-admin.yaml
diff --git
a/helm/infrastructure/subcharts/kong/templates/service-kong-admin.yaml
b/helm/infrastructure/subcharts/kong/templates/service-kong-admin.yaml
old mode 100755
(executable)
new mode 100644
(file)
index
40107cb
..
6e56149
--- a/
helm/infrastructure/subcharts/kong/templates/service-kong-admin.yaml
+++ b/
helm/infrastructure/subcharts/kong/templates/service-kong-admin.yaml
@@
-1,3
+1,4
@@
+{{- if .Values.admin.enabled -}}
apiVersion: v1
kind: Service
metadata:
apiVersion: v1
kind: Service
metadata:
@@
-7,10
+8,7
@@
metadata:
{{ $key }}: {{ $value | quote }}
{{- end }}
labels:
{{ $key }}: {{ $value | quote }}
{{- end }}
labels:
- app: {{ template "kong.name" . }}
- chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
- release: "{{ .Release.Name }}"
- heritage: "{{ .Release.Service }}"
+ {{- include "kong.metaLabels" . | nindent 4 }}
spec:
type: {{ .Values.admin.type }}
{{- if eq .Values.admin.type "LoadBalancer" }}
spec:
type: {{ .Values.admin.type }}
{{- if eq .Values.admin.type "LoadBalancer" }}
@@
-33,6
+31,5
@@
spec:
{{- end }}
protocol: TCP
selector:
{{- end }}
protocol: TCP
selector:
- app: {{ template "kong.name" . }}
- release: {{ .Release.Name }}
- component: app
+ {{- include "kong.selectorLabels" . | nindent 4 }}
+{{- end -}}