Browse Source

Fixed pathBase generation for apigwws

Need to apply this change on the others
pull/867/head
eiximenis 6 years ago
parent
commit
e3807fa2a5
3 changed files with 8 additions and 6 deletions
  1. +6
    -4
      k8s/helm/apigwws/templates/_names.tpl
  2. +1
    -1
      k8s/helm/apigwws/templates/deployment.yaml
  3. +1
    -1
      k8s/helm/apigwws/templates/ingress.yaml

+ 6
- 4
k8s/helm/apigwws/templates/_names.tpl View File

@ -40,10 +40,12 @@
{{ define "pathBase" -}}
{{- if .Values.inf.k8s.suffix -}}
{{- $suffix := include "suffix-name" . -}}
{{- printf "%s-%s" .Values.pathBase $suffix -}}
{{- $name := first .}}
{{- $ctx := last .}}
{{- if $ctx.Values.inf.k8s.suffix -}}
{{- $suffix := include "suffix-name" $ctx -}}
{{- printf "/%s-%s" $name $suffix -}}
{{- else -}}
{{- .Values.pathBase -}}
{{- printf "/%s" $name -}}
{{- end -}}
{{- end -}}

+ 1
- 1
k8s/helm/apigwws/templates/deployment.yaml View File

@ -45,7 +45,7 @@ spec:
mountPath: /app/configuration
env:
- name: PATH_BASE
value: {{ include "pathBase" . }}
value: {{ include "pathBase" (list .Values.app.ingress.entries.webshoppingapigw .) }}
- name: k8sname
value: {{ .Values.clusterName }}
{{- if .Values.env.values -}}


+ 1
- 1
k8s/helm/apigwws/templates/ingress.yaml View File

@ -1,6 +1,6 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "apigwws.fullname" . -}}
{{- $ingressPath := include "pathBase" . -}}
{{- $ingressPath := include "pathBase" (list .Values.app.ingress.entries.webshoppingapigw .) -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:


Loading…
Cancel
Save