Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[AAI] Service Mesh compatibility
[oom.git]
/
kubernetes
/
common
/
common
/
templates
/
_service.tpl
diff --git
a/kubernetes/common/common/templates/_service.tpl
b/kubernetes/common/common/templates/_service.tpl
index
8489cc5
..
2650929
100644
(file)
--- a/
kubernetes/common/common/templates/_service.tpl
+++ b/
kubernetes/common/common/templates/_service.tpl
@@
-309,6
+309,16
@@
true
{{- end }}
{{- end -}}
{{- end }}
{{- end -}}
+{{/*
+ generate needed scheme:
+ - https if needTLS
+ - http if not
+*/}}
+
+{{- define "common.scheme" -}}
+ {{- ternary "https" "http" (eq "true" (include "common.needTLS" .)) }}
+{{- end -}}
+
{{- define "common.port.buildCache" -}}
{{- $global := . }}
{{- if not $global.Values._DmaapDrNodePortsCache }}
{{- define "common.port.buildCache" -}}
{{- $global := . }}
{{- if not $global.Values._DmaapDrNodePortsCache }}