Updated service names generation
This commit is contained in:
parent
9c95402f94
commit
68d753d0f0
@ -26,6 +26,8 @@ app: # app global settings
|
|||||||
basket: basket # service name for basket api
|
basket: basket # service name for basket api
|
||||||
catalog: catalog # service name for catalog api
|
catalog: catalog # service name for catalog api
|
||||||
ordering: ordering # service name for ordering api
|
ordering: ordering # service name for ordering api
|
||||||
|
orderingbackgroundtasks: orderingbackgroundtasks # service name for orderingbackgroundtasks
|
||||||
|
orderingsignalrhub: orderingsignalrhub # service name for orderingsignalrhub
|
||||||
identity: identity # service name for identity api
|
identity: identity # service name for identity api
|
||||||
mvc: webmvc # service name for web mvc
|
mvc: webmvc # service name for web mvc
|
||||||
spa: webspa # service name for web spa
|
spa: webspa # service name for web spa
|
||||||
|
@ -14,6 +14,14 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "mongo-name" -}}
|
||||||
|
{{- if .Values.inf.mongo.host -}}
|
||||||
|
{{- .Values.inf.mongo.host -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- printf "%s" "nosql-data" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "basket-api.fullname" . }}
|
name: {{ .Values.app.svc.basket }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ template "basket-api.name" . }}
|
app: {{ template "basket-api.name" . }}
|
||||||
chart: {{ template "basket-api.chart" . }}
|
chart: {{ template "basket-api.chart" . }}
|
||||||
|
@ -14,6 +14,14 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "mongo-name" -}}
|
||||||
|
{{- if .Values.inf.mongo.host -}}
|
||||||
|
{{- .Values.inf.mongo.host -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- printf "%s" "nosql-data" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "catalog-api.fullname" . }}
|
name: {{ .Values.app.svc.catalog }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ template "catalog-api.name" . }}
|
app: {{ template "catalog-api.name" . }}
|
||||||
chart: {{ template "catalog-api.chart" . }}
|
chart: {{ template "catalog-api.chart" . }}
|
||||||
|
@ -14,6 +14,14 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "mongo-name" -}}
|
||||||
|
{{- if .Values.inf.mongo.host -}}
|
||||||
|
{{- .Values.inf.mongo.host -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- printf "%s" "nosql-data" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
|
@ -14,6 +14,14 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "mongo-name" -}}
|
||||||
|
{{- if .Values.inf.mongo.host -}}
|
||||||
|
{{- .Values.inf.mongo.host -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- printf "%s" "nosql-data" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "ordering-api.fullname" . }}
|
name: {{ .Values.app.svc.ordering }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ template "ordering-api.name" . }}
|
app: {{ template "ordering-api.name" . }}
|
||||||
chart: {{ template "ordering-api.chart" . }}
|
chart: {{ template "ordering-api.chart" . }}
|
||||||
|
@ -14,6 +14,14 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "mongo-name" -}}
|
||||||
|
{{- if .Values.inf.mongo.host -}}
|
||||||
|
{{- .Values.inf.mongo.host -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- printf "%s" "nosql-data" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "ordering-backgroundtasks.fullname" . }}
|
name: {{ .Values.app.svc.orderingbackgroundtasks }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ template "ordering-backgroundtasks.name" . }}
|
app: {{ template "ordering-backgroundtasks.name" . }}
|
||||||
chart: {{ template "ordering-backgroundtasks.chart" . }}
|
chart: {{ template "ordering-backgroundtasks.chart" . }}
|
||||||
|
@ -14,6 +14,14 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "mongo-name" -}}
|
||||||
|
{{- if .Values.inf.mongo.host -}}
|
||||||
|
{{- .Values.inf.mongo.host -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- printf "%s" "nosql-data" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "ordering-signalrhub.fullname" . }}
|
name: {{ .Values.app.svc.orderingsignalrhub }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ template "ordering-signalrhub.name" . }}
|
app: {{ template "ordering-signalrhub.name" . }}
|
||||||
chart: {{ template "ordering-signalrhub.chart" . }}
|
chart: {{ template "ordering-signalrhub.chart" . }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user