final updates to helm scripts
This commit is contained in:
parent
8ca63522c3
commit
9351fb31eb
12
k8s/helm/aks-httpaddon-cfg.yaml
Normal file
12
k8s/helm/aks-httpaddon-cfg.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
# addonmanager.kubernetes.io/mode: Reconcile
|
||||||
|
app: addon-http-application-routing-ingress-nginx
|
||||||
|
kubernetes.io/cluster-service: "true"
|
||||||
|
name: addon-http-application-routing-nginx-configuration
|
||||||
|
namespace: kube-system
|
||||||
|
data:
|
||||||
|
proxy-buffer-size: "128k"
|
||||||
|
proxy-buffers: "4 256k"
|
@ -25,21 +25,15 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
{{- define "pathBase" -}}
|
||||||
{{ define "pathBase" -}}
|
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
{{- if $ctx.Values.inf.k8s.suffix -}}
|
||||||
@ -48,4 +42,12 @@
|
|||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "/%s" $name -}}
|
{{- printf "/%s" $name -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -23,11 +23,9 @@ spec:
|
|||||||
app: {{ template "apigwmm.name" . }}
|
app: {{ template "apigwmm.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
@ -38,7 +36,7 @@ spec:
|
|||||||
path: configuration.json
|
path: configuration.json
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
|
@ -25,21 +25,16 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "pathBase" -}}
|
{{- define "pathBase" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
{{- if $ctx.Values.inf.k8s.suffix -}}
|
||||||
@ -48,4 +43,12 @@
|
|||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "/%s" $name -}}
|
{{- printf "/%s" $name -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -23,11 +23,9 @@ spec:
|
|||||||
app: {{ template "apigwms.name" . }}
|
app: {{ template "apigwms.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
@ -38,7 +36,7 @@ spec:
|
|||||||
path: configuration.json
|
path: configuration.json
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
|
@ -25,21 +25,16 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "pathBase" -}}
|
{{- define "pathBase" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
{{- if $ctx.Values.inf.k8s.suffix -}}
|
||||||
@ -48,4 +43,12 @@
|
|||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "/%s" $name -}}
|
{{- printf "/%s" $name -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -23,11 +23,9 @@ spec:
|
|||||||
app: {{ template "apigwwm.name" . }}
|
app: {{ template "apigwwm.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
@ -38,7 +36,7 @@ spec:
|
|||||||
path: configuration.json
|
path: configuration.json
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
|
@ -25,21 +25,15 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
{{- define "pathBase" -}}
|
||||||
{{ define "pathBase" -}}
|
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
{{- if $ctx.Values.inf.k8s.suffix -}}
|
||||||
@ -48,4 +42,12 @@
|
|||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "/%s" $name -}}
|
{{- printf "/%s" $name -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -23,11 +23,9 @@ spec:
|
|||||||
app: {{ template "apigwws.name" . }}
|
app: {{ template "apigwws.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
@ -38,7 +36,7 @@ spec:
|
|||||||
path: configuration.json
|
path: configuration.json
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
|
@ -25,25 +25,28 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "pathBase" -}}
|
{{- define "pathBase" -}}
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -22,15 +22,13 @@ spec:
|
|||||||
app: {{ template "basket-api.name" . }}
|
app: {{ template "basket-api.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -25,25 +25,28 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "pathBase" -}}
|
{{- define "pathBase" -}}
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -22,15 +22,13 @@ spec:
|
|||||||
app: {{ template "catalog-api.name" . }}
|
app: {{ template "catalog-api.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -40,7 +40,15 @@ if ($clean) {
|
|||||||
Write-Host "Previous releases deleted" -ForegroundColor Green
|
Write-Host "Previous releases deleted" -ForegroundColor Green
|
||||||
}
|
}
|
||||||
|
|
||||||
$useDockerHub = [string]::IsNullOrEmpty($registry)
|
$useCustomRegistry=$false
|
||||||
|
|
||||||
|
if (-not [string]::IsNullOrEmpty($registry)) {
|
||||||
|
$useCustomRegistry=$true
|
||||||
|
if ([string]::IsNullOrEmpty($dockerUser) -or [string]::IsNullOrEmpty($dockerPassword)) {
|
||||||
|
Write-Host "Error: Must use -dockerUser AND -dockerPassword if specifying custom registry" -ForegroundColor Red
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host "Begin eShopOnContainers installation using Helm" -ForegroundColor Green
|
Write-Host "Begin eShopOnContainers installation using Helm" -ForegroundColor Green
|
||||||
|
|
||||||
@ -56,7 +64,14 @@ if ($deployInfrastructure) {
|
|||||||
|
|
||||||
foreach ($chart in $charts) {
|
foreach ($chart in $charts) {
|
||||||
Write-Host "Installing: $chart" -ForegroundColor Green
|
Write-Host "Installing: $chart" -ForegroundColor Green
|
||||||
helm install --values app.yaml --values inf.yaml --values ingress_values.yaml --set app.name=$appName --set inf.k8s.dns=$dns --set image.tag=$imageTag --name="$appName-$chart" $chart
|
if ($useCustomRegistry) {
|
||||||
|
helm install --set inf.registry.server=$registry --set inf.registry.login=$dockerUser --set inf.registry.pwd=$dockerPassword --set inf.registry.secretName=eshop-docker-scret --values app.yaml --values inf.yaml --values ingress_values.yaml --set app.name=$appName --set inf.k8s.dns=$dns --set image.tag=$imageTag --set image.pullPolicy=Always --name="$appName-$chart" $chart
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if ($chart -ne "eshop-common") { # eshop-common is ignored when no secret must be deployed
|
||||||
|
helm install --values app.yaml --values inf.yaml --values ingress_values.yaml --set app.name=$appName --set inf.k8s.dns=$dns --set image.tag=$imageTag --set image.pullPolicy=Always --name="$appName-$chart" $chart
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "helm charts installed." -ForegroundColor Green
|
Write-Host "helm charts installed." -ForegroundColor Green
|
||||||
|
@ -25,25 +25,27 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
{{- define "pathBase" -}}
|
||||||
{{ define "pathBase" -}}
|
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -22,15 +22,13 @@ spec:
|
|||||||
app: {{ template "identity-api.name" . }}
|
app: {{ template "identity-api.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -34,9 +34,7 @@ inf:
|
|||||||
appinsights:
|
appinsights:
|
||||||
key: "" # App insights to use
|
key: "" # App insights to use
|
||||||
k8s: # inf.k8s defines Kubernetes cluster global config
|
k8s: # inf.k8s defines Kubernetes cluster global config
|
||||||
dns: "" # k8s external IP or DNS. Value MUST BE PROVIDED using --set (--set inf.k8s.dns=my-cluster-dns)
|
dns: "" # k8s external DNS. This value or ip value MUST BE PROVIDED
|
||||||
dnsprefix: false # If 'true' DNS values in ingress are prefixed using values.app.name. Note that this requires "externalDNS" to be running in k8s cluster. If true "inf.k8s.suffix" is ignored.
|
|
||||||
suffix: false # If 'true' URL values in ingress are suffixed using values.app.name. That do not require anything special in cluster and still allows many apps using same ingress controller. Ignored if inf.k8s.dnsprefix is true
|
|
||||||
misc: # inf.misc contains miscellaneous configuration related to infrastructure
|
misc: # inf.misc contains miscellaneous configuration related to infrastructure
|
||||||
useLoadTest: false # If running under loading test or not
|
useLoadTest: false # If running under loading test or not
|
||||||
useAzureStorage: false # If catalog api uses azure storage or not
|
useAzureStorage: false # If catalog api uses azure storage or not
|
||||||
|
@ -25,25 +25,28 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "pathBase" -}}
|
{{- define "pathBase" -}}
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -22,15 +22,13 @@ spec:
|
|||||||
app: {{ template "locations-api.name" . }}
|
app: {{ template "locations-api.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -25,25 +25,28 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "pathBase" -}}
|
{{- define "pathBase" -}}
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -22,15 +22,13 @@ spec:
|
|||||||
app: {{ template "marketing-api.name" . }}
|
app: {{ template "marketing-api.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -25,25 +25,28 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "pathBase" -}}
|
{{- define "pathBase" -}}
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -22,15 +22,13 @@ spec:
|
|||||||
app: {{ template "mobileshoppingagg.name" . }}
|
app: {{ template "mobileshoppingagg.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -25,25 +25,27 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
{{- define "pathBase" -}}
|
||||||
{{ define "pathBase" -}}
|
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -22,15 +22,13 @@ spec:
|
|||||||
app: {{ template "ordering-api.name" . }}
|
app: {{ template "ordering-api.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -25,25 +25,27 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
{{- define "pathBase" -}}
|
||||||
{{ define "pathBase" -}}
|
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -22,15 +22,13 @@ spec:
|
|||||||
app: {{ template "ordering-backgroundtasks.name" . }}
|
app: {{ template "ordering-backgroundtasks.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -25,25 +25,27 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
{{- define "pathBase" -}}
|
||||||
{{ define "pathBase" -}}
|
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -5,7 +5,6 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ template "ordering-signalrhub.fullname" . }}
|
name: {{ template "ordering-signalrhub.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
ufo: {{ $cfgname}}
|
|
||||||
app: {{ template "ordering-signalrhub.name" . }}
|
app: {{ template "ordering-signalrhub.name" . }}
|
||||||
chart: {{ template "ordering-signalrhub.chart" . }}
|
chart: {{ template "ordering-signalrhub.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
@ -22,15 +21,13 @@ spec:
|
|||||||
app: {{ template "ordering-signalrhub.name" . }}
|
app: {{ template "ordering-signalrhub.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -25,25 +25,27 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
{{- define "pathBase" -}}
|
||||||
{{ define "pathBase" -}}
|
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -22,15 +22,13 @@ spec:
|
|||||||
app: {{ template "payment-api.name" . }}
|
app: {{ template "payment-api.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -25,25 +25,28 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "pathBase" -}}
|
{{- define "pathBase" -}}
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -22,15 +22,13 @@ spec:
|
|||||||
app: {{ template "webmvc.name" . }}
|
app: {{ template "webmvc.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -25,25 +25,28 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "pathBase" -}}
|
{{- define "pathBase" -}}
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -22,15 +22,13 @@ spec:
|
|||||||
app: {{ template "webshoppingagg.name" . }}
|
app: {{ template "webshoppingagg.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -25,25 +25,28 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "pathBase" -}}
|
{{- define "pathBase" -}}
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -22,15 +22,13 @@ spec:
|
|||||||
app: {{ template "webspa.name" . }}
|
app: {{ template "webspa.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -25,25 +25,28 @@
|
|||||||
{{- define "url-of" -}}
|
{{- define "url-of" -}}
|
||||||
{{- $name := first .}}
|
{{- $name := first .}}
|
||||||
{{- $ctx := last .}}
|
{{- $ctx := last .}}
|
||||||
{{- $suffix := include "suffix-name" $ctx -}}
|
{{- if eq $name "" -}}
|
||||||
{{- if $ctx.Values.inf.k8s.dnsprefix -}}
|
{{- $ctx.Values.inf.k8s.dns -}}
|
||||||
{{- printf "%s.%s/%s" $suffix $ctx.Values.inf.k8s.dns $name -}} {{/* Value is <prefix>.<dns>/<name> */}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if $ctx.Values.inf.k8s.suffix -}}
|
|
||||||
{{- printf "%s/%s-%s" $ctx.Values.inf.k8s.dns $name $suffix -}} {{/*Value is <dns>/<name>-<sufix> */}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
{{- printf "%s/%s" $ctx.Values.inf.k8s.dns $name -}} {{/*Value is just <dns>/<name> */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "pathBase" -}}
|
{{- define "pathBase" -}}
|
||||||
{{- if .Values.inf.k8s.suffix -}}
|
{{- if .Values.inf.k8s.suffix -}}
|
||||||
{{- $suffix := include "suffix-name" . -}}
|
{{- $suffix := include "suffix-name" . -}}
|
||||||
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
{{- printf "%s-%s" .Values.pathBase $suffix -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.pathBase -}}
|
{{- .Values.pathBase -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "fqdn-image" -}}
|
||||||
|
{{- if .Values.inf.registry -}}
|
||||||
|
{{- printf "%s/%s" .Values.inf.registry.server .Values.image.repository -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Values.image.repository -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -22,15 +22,13 @@ spec:
|
|||||||
app: {{ template "webstatus.name" . }}
|
app: {{ template "webstatus.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
{{ if .Values.imagePullSecrets -}}
|
{{ if .Values.inf.registry -}}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ range .Values.imagePullSecrets -}}
|
- name: {{ .Values.inf.registry.secretName }}
|
||||||
- name: {{ .name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: PATH_BASE
|
- name: PATH_BASE
|
||||||
|
@ -151,6 +151,7 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
|
|||||||
await next();
|
await next();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.UseForwardedHeaders();
|
||||||
// Adds IdentityServer
|
// Adds IdentityServer
|
||||||
app.UseIdentityServer();
|
app.UseIdentityServer();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user