Skip to content

Commit

Permalink
feat(ingress): add notifications paths to ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
manuandru committed May 24, 2024
1 parent 90dcdfe commit 7abac4b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ spec:
- host: localhost
http:
paths:
{{- range $i, $path := .Values.notificationsServicePaths }}
- pathType: ImplementationSpecific
path: "{{ $path }}"
backend:
service:
name: notifications-service
port:
number: 8080
{{- end }}
{{- range $i, $path := .Values.usersServicePaths }}
- pathType: ImplementationSpecific
path: "{{ $path }}"
Expand All @@ -24,7 +33,6 @@ spec:
name: users-service
port:
number: 8080

{{- end }}
{{- range $i, $path := .Values.friendshipsServicePaths }}
- pathType: ImplementationSpecific
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/helm-chart/piper-ingress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ usersServicePaths:
- /auth/login
- /oauth/access_token

notificationsServicePaths:
- /notification
- /users/[a-zA-Z0-9]+/status

friendshipsServicePaths:
- /friends
- /friends/requests
Expand Down

0 comments on commit 7abac4b

Please sign in to comment.