Ingress: Give arbitary fqdns a different name from namespaced rules

This PS gives ingress rules attached to the cluster wide ingress
controller the suffix `-fqdn` to allow them to be used.

Change-Id: I7de85e349fb609b8380070030579b9b4767e72d1
This commit is contained in:
portdirect 2018-03-28 10:27:21 -04:00
parent ceca6ad96c
commit 34175d43af

View File

@ -62,7 +62,7 @@ spec:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $ingressName }}
name: {{ printf "%s-%s" $ingressName "fqdn" }}
annotations:
kubernetes.io/ingress.class: {{ index $envAll.Values.network $backendService "ingress" "classes" "cluster" | quote }}
{{ toYaml (index $envAll.Values.network $backendService "ingress" "annotations") | indent 4 }}