Skip to content

Commit

Permalink
feat: add Istio VirtualService configuration for validation server
Browse files Browse the repository at this point in the history
On-behalf-of: @SAP angel.kafazov@sap.com
Signed-off-by: Angel Kafazov <akafazov@cst-bg.net>
  • Loading branch information
akafazov committed Feb 7, 2025
1 parent 0f33c1a commit a84da7d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions charts/extension-manager-operator/templates/virtual-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- if eq (include "common.getKeyValue" (dict "Values" .Values "key" "istio.enabled")) "true" -}}
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: {{ include "common.entity.name" . }}-server
namespace: {{ .Release.Namespace }}
spec:
gateways:
- {{ .Release.Namespace}}/{{ include "common.getKeyValue" (dict "Values" .Values "key" "istio.gateway.name") }}
hosts:
- "{{ .Values.validationServer.host | default "*" }}"
http:
- match:
- uri:
prefix: /validate
route:
- destination:
host: {{ include "common.entity.name" . }}-server.{{ .Release.Namespace }}.svc.cluster.local
port:
number: {{ .Values.validationServer.port }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/extension-manager-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ validationServer:
port: 8088
# -- host for the validation VirtualService
host: "*"

istio:
# -- enable Istio VirtualService
enabled: true

0 comments on commit a84da7d

Please sign in to comment.