{{/* vim: set filetype=mustache: */}} {{/* Create chart name and version as used by the chart label. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). */}} {{- define "all-ingress.name" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 }} {{- end }} {{/* Create the tls configuration for https to enable trafik-ingress */}} {{- define "all-ingress-front.full.applications" -}} - cmii-uav-platform - cmii-uav-platform-ai-brain - cmii-uav-platform-hyperspectral - cmii-uav-platform-mws - cmii-uav-platform-oms - cmii-uav-platform-open - cmii-uav-platform-splice - cmii-uav-platform-splice-visual {{- end }} {{/* common annotations of frontend applications */}} {{- define "all-ingress.frontend.commom.annotations" -}} kubernetes.io/ingress.class: "nginx" nginx.ingress.kubernetes.io/enable-cors: "true" nginx.ingress.kubernetes.io/rewrite-target: /$1 {{- end }} {{/* Specific annotations created for api applications */}} {{- define "all-ingress.all-apis.commom.annotations" -}} kubernetes.io/ingress.class: "nginx" nginx.ingress.kubernetes.io/enable-cors: "true" nginx.ingress.kubernetes.io/rewrite-target: /$2 {{- end }} {{/* the specific annotations for project-minio */}} {{/*{{- define "uavcloud-ingress.apiGateway.project-minio.annotations" -}}*/}} {{/*kubernetes.io/ingress.class: "nginx"*/}} {{/*nginx.ingress.kubernetes.io/enable-cors: "true"*/}} {{/*nginx.ingress.kubernetes.io/rewrite-target: /api/uav/minio/$2*/}} {{/*{{- end }}*/}}