diff --git a/helm/dbrepo/templates/routes.yaml b/helm/dbrepo/templates/routes.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f99025e7f3c2a5610f235ac7475e287abe20c14a --- /dev/null +++ b/helm/dbrepo/templates/routes.yaml @@ -0,0 +1,460 @@ +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-analyse + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/analyse + to: + kind: Service + name: analyse-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-search + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/search + to: + kind: Service + name: search-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-data-subset + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/database/([0-9]+)/subset + to: + kind: Service + name: data-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-data-table-data + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/database/[0-9]+/table/[0-9]+/data + to: + kind: Service + name: data-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-data-table-history + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/database/[0-9]+/table/[0-9]+/history + to: + kind: Service + name: data-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-data-table-export + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/database/[0-9]+/table/[0-9]+/export + to: + kind: Service + name: data-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-data-view-data + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/database/[0-9]+/view/[0-9]+/data + to: + kind: Service + name: data-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-metadata-view + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/database/[0-9]+/view + to: + kind: Service + name: metadata-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-metadata-database + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/database + to: + kind: Service + name: metadata-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-metadata-concept + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/concept + to: + kind: Service + name: metadata-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-metadata-container + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/container + to: + kind: Service + name: metadata-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-metadata-identifier + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/identifier + to: + kind: Service + name: metadata-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-metadata-image + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/image + to: + kind: Service + name: metadata-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-metadata-message + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/message + to: + kind: Service + name: metadata-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-metadata-license + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/license + to: + kind: Service + name: metadata-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-metadata-oai + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/oai + to: + kind: Service + name: metadata-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-metadata-ontology + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/ontology + to: + kind: Service + name: metadata-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-metadata-unit + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/unit + to: + kind: Service + name: metadata-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-metadata-user + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/user + to: + kind: Service + name: metadata-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-upload + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/upload + to: + kind: Service + name: upload-service + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-ui + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.basic | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: / + to: + kind: Service + name: ui + port: + targetPort: 80 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-broker + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.rewriteApi | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/broker + to: + kind: Service + name: broker-service + port: + targetPort: 15672 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: dbrepo-route-broker-rewrite + namespace: {{ .Values.namespace }} + annotations: {{ toYaml .Values.ingress.annotations.rewriteRoot | nindent 4 }} +spec: + host: {{ .Values.hostname }} + path: /api/broker/(.*) + to: + kind: Service + name: broker-service + port: + targetPort: 15672 + {{- if .Values.ingress.tls.enabled }} + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect + {{- end }} \ No newline at end of file