Browse Source

Updated service names generation

pull/867/head
eiximenis 6 years ago
parent
commit
68d753d0f0
12 changed files with 71 additions and 21 deletions
  1. +18
    -16
      k8s/helm/app.yaml
  2. +8
    -0
      k8s/helm/basket-api/templates/_names.tpl
  3. +1
    -1
      k8s/helm/basket-api/templates/service.yaml
  4. +8
    -0
      k8s/helm/catalog-api/templates/_names.tpl
  5. +1
    -1
      k8s/helm/catalog-api/templates/service.yaml
  6. +8
    -0
      k8s/helm/identity-api/templates/_names.tpl
  7. +8
    -0
      k8s/helm/ordering-api/templates/_names.tpl
  8. +1
    -1
      k8s/helm/ordering-api/templates/service.yaml
  9. +8
    -0
      k8s/helm/ordering-backgroundtasks/templates/_names.tpl
  10. +1
    -1
      k8s/helm/ordering-backgroundtasks/templates/service.yaml
  11. +8
    -0
      k8s/helm/ordering-signalrhub/templates/_names.tpl
  12. +1
    -1
      k8s/helm/ordering-signalrhub/templates/service.yaml

+ 18
- 16
k8s/helm/app.yaml View File

@ -23,19 +23,21 @@ app: # app global settings
locations: locations-api # ingress entry for locations api
marketing: marketing-api # ingress entry for marketing api
svc:
basket: basket # service name for basket api
catalog: catalog # service name for catalog api
ordering: ordering # service name for ordering api
identity: identity # service name for identity api
mvc: webmvc # service name for web mvc
spa: webspa # service name for web spa
status: webstatus # service name for web status
webshoppingapigw: webshoppingapigw # service name for web shopping Agw
webmarketingapigw: webmarketingapigw # service name for web mkg Agw
mobilemarketingapigw: mobilemarketingapigw # service name for mobile mkg Agw
mobileshoppingapigw: mobileshoppingapigw # service name for mobile shopping Agw
webshoppingagg: webshoppingagg # service name for web shopping aggregator
mobileshoppingagg: mobileshoppingagg # service name for mobile shopping aggregator
payment: payment # service name for payment api
locations: locations # service name for locations api
marketing: marketing # service name for marketing api
basket: basket # service name for basket api
catalog: catalog # service name for catalog 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
mvc: webmvc # service name for web mvc
spa: webspa # service name for web spa
status: webstatus # service name for web status
webshoppingapigw: webshoppingapigw # service name for web shopping Agw
webmarketingapigw: webmarketingapigw # service name for web mkg Agw
mobilemarketingapigw: mobilemarketingapigw # service name for mobile mkg Agw
mobileshoppingapigw: mobileshoppingapigw # service name for mobile shopping Agw
webshoppingagg: webshoppingagg # service name for web shopping aggregator
mobileshoppingagg: mobileshoppingagg # service name for mobile shopping aggregator
payment: payment # service name for payment api
locations: locations # service name for locations api
marketing: marketing # service name for marketing api

+ 8
- 0
k8s/helm/basket-api/templates/_names.tpl View File

@ -14,6 +14,14 @@
{{- end -}}
{{- end -}}
{{- define "mongo-name" -}}
{{- if .Values.inf.mongo.host -}}
{{- .Values.inf.mongo.host -}}
{{- else -}}
{{- printf "%s" "nosql-data" -}}
{{- end -}}
{{- end -}}
{{- define "url-of" -}}
{{- $name := first .}}
{{- $ctx := last .}}


+ 1
- 1
k8s/helm/basket-api/templates/service.yaml View File

@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "basket-api.fullname" . }}
name: {{ .Values.app.svc.basket }}
labels:
app: {{ template "basket-api.name" . }}
chart: {{ template "basket-api.chart" . }}


+ 8
- 0
k8s/helm/catalog-api/templates/_names.tpl View File

@ -14,6 +14,14 @@
{{- end -}}
{{- end -}}
{{- define "mongo-name" -}}
{{- if .Values.inf.mongo.host -}}
{{- .Values.inf.mongo.host -}}
{{- else -}}
{{- printf "%s" "nosql-data" -}}
{{- end -}}
{{- end -}}
{{- define "url-of" -}}
{{- $name := first .}}
{{- $ctx := last .}}


+ 1
- 1
k8s/helm/catalog-api/templates/service.yaml View File

@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "catalog-api.fullname" . }}
name: {{ .Values.app.svc.catalog }}
labels:
app: {{ template "catalog-api.name" . }}
chart: {{ template "catalog-api.chart" . }}


+ 8
- 0
k8s/helm/identity-api/templates/_names.tpl View File

@ -14,6 +14,14 @@
{{- end -}}
{{- end -}}
{{- define "mongo-name" -}}
{{- if .Values.inf.mongo.host -}}
{{- .Values.inf.mongo.host -}}
{{- else -}}
{{- printf "%s" "nosql-data" -}}
{{- end -}}
{{- end -}}
{{- define "url-of" -}}
{{- $name := first .}}
{{- $ctx := last .}}


+ 8
- 0
k8s/helm/ordering-api/templates/_names.tpl View File

@ -14,6 +14,14 @@
{{- end -}}
{{- end -}}
{{- define "mongo-name" -}}
{{- if .Values.inf.mongo.host -}}
{{- .Values.inf.mongo.host -}}
{{- else -}}
{{- printf "%s" "nosql-data" -}}
{{- end -}}
{{- end -}}
{{- define "url-of" -}}
{{- $name := first .}}
{{- $ctx := last .}}


+ 1
- 1
k8s/helm/ordering-api/templates/service.yaml View File

@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "ordering-api.fullname" . }}
name: {{ .Values.app.svc.ordering }}
labels:
app: {{ template "ordering-api.name" . }}
chart: {{ template "ordering-api.chart" . }}


+ 8
- 0
k8s/helm/ordering-backgroundtasks/templates/_names.tpl View File

@ -14,6 +14,14 @@
{{- end -}}
{{- end -}}
{{- define "mongo-name" -}}
{{- if .Values.inf.mongo.host -}}
{{- .Values.inf.mongo.host -}}
{{- else -}}
{{- printf "%s" "nosql-data" -}}
{{- end -}}
{{- end -}}
{{- define "url-of" -}}
{{- $name := first .}}
{{- $ctx := last .}}


+ 1
- 1
k8s/helm/ordering-backgroundtasks/templates/service.yaml View File

@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "ordering-backgroundtasks.fullname" . }}
name: {{ .Values.app.svc.orderingbackgroundtasks }}
labels:
app: {{ template "ordering-backgroundtasks.name" . }}
chart: {{ template "ordering-backgroundtasks.chart" . }}


+ 8
- 0
k8s/helm/ordering-signalrhub/templates/_names.tpl View File

@ -14,6 +14,14 @@
{{- end -}}
{{- end -}}
{{- define "mongo-name" -}}
{{- if .Values.inf.mongo.host -}}
{{- .Values.inf.mongo.host -}}
{{- else -}}
{{- printf "%s" "nosql-data" -}}
{{- end -}}
{{- end -}}
{{- define "url-of" -}}
{{- $name := first .}}
{{- $ctx := last .}}


+ 1
- 1
k8s/helm/ordering-signalrhub/templates/service.yaml View File

@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "ordering-signalrhub.fullname" . }}
name: {{ .Values.app.svc.orderingsignalrhub }}
labels:
app: {{ template "ordering-signalrhub.name" . }}
chart: {{ template "ordering-signalrhub.chart" . }}


Loading…
Cancel
Save