{{- if .Values.route.enabled -}} kind: Route apiVersion: route.openshift.io/v1 metadata: name: {{ include "llama-stack.fullname" . }} labels: {{- include "llama-stack.labels" . | nindent 4 }} {{- with .Values.route.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: {{- if .Values.route.host }} host: {{ .Values.route.host }} {{- end }} {{- if .Values.route.path }} path: {{ .Values.route.path }} {{- end }} to: kind: Service name: {{ include "llama-stack.fullname" . }} weight: 100 port: targetPort: llama-stack {{- if .Values.route.tls.enabled }} tls: termination: {{ .Values.route.tls.termination }} insecureEdgeTerminationPolicy: {{ .Values.route.tls.insecureEdgeTerminationPolicy }} {{- end }} wildcardPolicy: None {{- end }}