Skip to content

Commit

Permalink
🍭 ADD - Route definition (#4914)
Browse files Browse the repository at this point in the history
Signed-off-by: Cansu Kavili <[email protected]>
  • Loading branch information
ckavili authored Jan 10, 2025
1 parent 4b19024 commit a3dfbd5
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infra/charts/feast-feature-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion infra/charts/feast-feature-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | `[]` | |
| tolerations | list | `[]` | |
| route.enabled | bool | `false` | |
18 changes: 18 additions & 0 deletions infra/charts/feast-feature-server/templates/route.yaml
Original file line number Diff line number Diff line change
@@ -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}}
4 changes: 4 additions & 0 deletions infra/charts/feast-feature-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,7 @@ livenessProbe:
readinessProbe:
initialDelaySeconds: 20
periodSeconds: 10

# to create OpenShift Route object for UI
route:
enabled: false

0 comments on commit a3dfbd5

Please sign in to comment.