Skip to content

Commit

Permalink
add route resource
Browse files Browse the repository at this point in the history
  • Loading branch information
IhsenBouallegue committed Dec 29, 2022
1 parent 4ea0647 commit dafd1b0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/hubone/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.0.0
version: 2.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
7 changes: 0 additions & 7 deletions charts/hubone/templates/hubone-namespace.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions charts/hubone/templates/route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{- if .Values.route.enabled -}}
{{- $fullName := include "hubone.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
kind: HTTPRoute
apiVersion: gateway.networking.k8s.io/v1beta1
metadata:
name: {{ $fullName }}
spec:
parentRefs:
- kind: Gateway
name: {{ .Values.route.parentrefs.name }}
namespace: {{ .Values.route.parentrefs.namespace }}

hostnames:
- {{ .Values.route.path }}
rules:
- backendRefs:
- name: {{ $fullName }}
port: {{ $svcPort }}
{{- end }}
8 changes: 7 additions & 1 deletion charts/hubone/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ service:
port: 3000
annotations:
argocd.argoproj.io/sync-wave: "2"
route:
enabled: false
path: user.huboneapp.com
parentrefs:
name: "hubeon-gateway"
namespace: "default"

ingress:
enabled: true
Expand All @@ -42,7 +48,7 @@ ingress:
argocd.argoproj.io/sync-wave: "3"

hosts:
- host: user1.hubone.com
- host: user.huboneapp.com
paths:
- path: /
pathType: Prefix
Expand Down

0 comments on commit dafd1b0

Please sign in to comment.