From 356e6c6d6b20da6a9d1db06c73a22a232a647282 Mon Sep 17 00:00:00 2001 From: Cansu Kavili Date: Fri, 10 Jan 2025 14:23:40 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=AD=20ADD=20-=20Route=20definition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cansu Kavili --- infra/charts/feast-feature-server/Chart.yaml | 2 +- infra/charts/feast-feature-server/README.md | 3 ++- .../feast-feature-server/templates/route.yaml | 18 ++++++++++++++++++ infra/charts/feast-feature-server/values.yaml | 4 ++++ 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 infra/charts/feast-feature-server/templates/route.yaml diff --git a/infra/charts/feast-feature-server/Chart.yaml b/infra/charts/feast-feature-server/Chart.yaml index 15cb6141236..a88a067f9d9 100644 --- a/infra/charts/feast-feature-server/Chart.yaml +++ b/infra/charts/feast-feature-server/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: feast-feature-server description: Feast Feature Server in Go or Python type: application -version: 0.42.0 +version: 0.42.1 keywords: - machine learning - big data diff --git a/infra/charts/feast-feature-server/README.md b/infra/charts/feast-feature-server/README.md index a1578196b91..1c3e17993ff 100644 --- a/infra/charts/feast-feature-server/README.md +++ b/infra/charts/feast-feature-server/README.md @@ -60,4 +60,5 @@ See [here](https://github.com/feast-dev/feast/tree/master/examples/python-helm-d | service.port | int | `80` | | | service.type | string | `"ClusterIP"` | | | serviceAccount.name | string | `""` | | -| tolerations | list | `[]` | | \ No newline at end of file +| tolerations | list | `[]` | | +| route.enabled | bool | `false` | | \ No newline at end of file diff --git a/infra/charts/feast-feature-server/templates/route.yaml b/infra/charts/feast-feature-server/templates/route.yaml new file mode 100644 index 00000000000..2f4d36d9e5a --- /dev/null +++ b/infra/charts/feast-feature-server/templates/route.yaml @@ -0,0 +1,18 @@ +{{- if and (.Values.route.enabled) (eq .Values.feast_mode "ui") }} +--- +kind: Route +apiVersion: route.openshift.io/v1 +metadata: + name: {{ include "feast-feature-server.fullname" . }} + labels: + {{- include "feast-feature-server.labels" . | nindent 4 }} +spec: + to: + kind: Service + name: {{ include "feast-feature-server.fullname" . }} + port: + targetPort: http + tls: + termination: edge + insecureEdgeTerminationPolicy: Redirect +{{- end}} \ No newline at end of file diff --git a/infra/charts/feast-feature-server/values.yaml b/infra/charts/feast-feature-server/values.yaml index ed54d328d10..9a0d2986631 100644 --- a/infra/charts/feast-feature-server/values.yaml +++ b/infra/charts/feast-feature-server/values.yaml @@ -74,3 +74,7 @@ livenessProbe: readinessProbe: initialDelaySeconds: 20 periodSeconds: 10 + +# to create OpenShift Route object for UI +route: + enabled: false \ No newline at end of file