diff --git a/charts/hubone/Chart.yaml b/charts/hubone/Chart.yaml index 2cbebcb..e2585de 100644 --- a/charts/hubone/Chart.yaml +++ b/charts/hubone/Chart.yaml @@ -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 diff --git a/charts/hubone/templates/hubone-namespace.yaml b/charts/hubone/templates/hubone-namespace.yaml deleted file mode 100644 index 58bc5f8..0000000 --- a/charts/hubone/templates/hubone-namespace.yaml +++ /dev/null @@ -1,7 +0,0 @@ -# apiVersion: v1 -# kind: Namespace -# metadata: -# name: hubone -# annotations: -# argocd.argoproj.io/sync-wave: "-1" - diff --git a/charts/hubone/templates/route.yaml b/charts/hubone/templates/route.yaml new file mode 100644 index 0000000..976e370 --- /dev/null +++ b/charts/hubone/templates/route.yaml @@ -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 }} diff --git a/charts/hubone/values.yaml b/charts/hubone/values.yaml index fbf4c8a..71c1cb3 100644 --- a/charts/hubone/values.yaml +++ b/charts/hubone/values.yaml @@ -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 @@ -42,7 +48,7 @@ ingress: argocd.argoproj.io/sync-wave: "3" hosts: - - host: user1.hubone.com + - host: user.huboneapp.com paths: - path: / pathType: Prefix