github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/kiali-server/templates/route.yaml (about) 1 {{- if .Capabilities.APIVersions.Has "route.openshift.io/v1" }} 2 {{- if eq "true" (include "kiali-server.deployment.ingress.enabled" .) }} 3 # As of OpenShift 4.5, need to use --disable-openapi-validation when installing via Helm 4 --- 5 apiVersion: route.openshift.io/v1 6 kind: Route 7 metadata: 8 name: {{ include "kiali-server.fullname" . }} 9 namespace: {{ .Release.Namespace }} 10 labels: 11 {{- if .Values.deployment.ingress.additional_labels }} 12 {{- toYaml .Values.deployment.ingress.additional_labels | nindent 4 }} 13 {{- end }} 14 {{- include "kiali-server.labels" . | nindent 4 }} 15 {{- if .Values.deployment.ingress.override_yaml.metadata.annotations }} 16 annotations: 17 {{- toYaml .Values.deployment.ingress.override_yaml.metadata.annotations | nindent 4 }} 18 {{- end }} 19 spec: 20 {{- if hasKey .Values.deployment.ingress.override_yaml "spec" }} 21 {{- toYaml .Values.deployment.ingress.override_yaml.spec | nindent 2 }} 22 {{- else }} 23 tls: 24 termination: reencrypt 25 insecureEdgeTerminationPolicy: Redirect 26 to: 27 kind: Service 28 name: {{ include "kiali-server.fullname" . }} 29 port: 30 targetPort: {{ .Values.server.port }} 31 {{- end }} 32 ... 33 {{- end }} 34 {{- end }}